What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-01 10:15:13
how use for loop in append attribute in jquery
$('#date').append( '<select id="date">'+ '<option value="0">- - SELECT - -</option>'); for(var i in data){ $('#date').append( '<option value="">'+data[i]['date_time']+'</option&g... Add solution -
PHP 2022-03-01 10:10:04
log data into file php
//Something to write to txt log $log = "User: ".$_SERVER['REMOTE_ADDR'].' - '.date("F j, Y, g:i a").PHP_EOL. "Attempt: ".($result[0]['success']=='1'?'Success':'Failed').PHP_EOL. "User: ".$username.P... Add solution -
Python 2022-02-28 07:55:13
checking number of connected users hotspot ubuntu
#!/usr/bin/python3.6 import subprocess import re import requests # Store Mac address of all nodes here saved = { 'xx:xx:xx:xx:xx:xx': 'My laptop', } # Set wireless interface using ifconfig interface = "wlp4s0" mac_regex = re.compile(r'... Add solution -
C++ 2022-02-28 05:55:16
append string c++
// appending to string #include <iostream> #include <string> int main () { std::string str; std::string str2="Writing "; std::string str3="print 10 and then 5 more"; // used in the same order as described above: ... Add solution -
Python 2022-02-27 23:10:03
how to make tic tac toe in python
#Tic Tac Toe game in python by techwithtim board = [' ' for x in range(10)] def insertLetter(letter, pos): board[pos] = letter def spaceIsFree(pos): return board[pos] == ' ' def printBoard(board): print(' | |') print(' ' + board[1]... Add solution -
Javascript 2022-02-27 23:00:02
js copy to clipboard cross browser
/** copy text to the clipboard */ function copy2clipboard( text, callback /* optional */ ) { // use modern clipboard API if ( navigator.clipboard ) { navigator.clipboard.writeText( text ) .then( function(){ // if a callback is provided, call it ... Add solution -
Python 2022-02-27 12:00:02
hack wifi password using python
1 import pywifi 2 3 from pywifi import const Refer to some definitions 4 5 import time 6 7 8 def getwifi(wifilist, wificount): 9 wifi = pywifi.PyWiFi() Grab the NIC interface10 ifaces = wifi.interfaces()[0] Get NIC11 ifaces.scan()12 time.sleep(8)13 b... Add solution