jQuery plugin that adds scrolling transition on click on anchor link.
How to use:
$(document).smoothHash();
/*globals define */ | |
define(function () { | |
'use strict'; | |
/** | |
* debounce module | |
* This module is freely usable, without any license | |
* Based on John Resig's work | |
* |
-- Connecté à exemple.fr:25 | |
S: 220 exemple.fr ESMTP Postfix (Debian/GNU) | |
C: HELO exemple.fr | |
S: 250-exemple.fr | |
C: MAIL FROM: [email protected] | |
S: 250 2.1.0 Ok | |
C: RCPT TO: [email protected] | |
S: 250 2.1.5 Ok | |
C: DATA | |
S: 354 End data with <CR><LF>.<CR><LF> |
// s-m-n | |
const s = "(f, x) => `y => (${f})(${x}, y)`"; | |
// fixed point | |
const e = q => { | |
const n = `(x, y) => (${q})((${s})(x, x), y)`; | |
const p = eval(`(${s})(n, n)`); | |
return `(${p})(0)`; | |
}; |
imx_v6_v7
configapt install bison bc lzop libssl-dev
make O=imx7 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- imx_v6_v7_defconfig
make O=imx7 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
#!/usr/bin/env bash | |
# /home/root/monitor_wlan0_ip.sh | |
iface=wlan0 | |
get_dbus_iface() { | |
dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply=literal \ | |
/fi/w1/wpa_supplicant1 \ | |
fi.w1.wpa_supplicant1.GetInterface \ | |
"string:$iface" \ | |
| sed 's/^ *//g' |
const xpathSelect = (expr) => { | |
const iterator = document.evaluate(expr, document); | |
const result = []; | |
let current = iterator.iterateNext(); | |
while (current) { | |
result.push(current); | |
current = iterator.iterateNext(); | |
} | |
import random | |
from itertools import product | |
from collections import Counter | |
suits = ["♡", "♣", "♢", "♠"] | |
values = ["5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"] | |
def deal(): | |
hands = list(product(suits, values)) | |
random.shuffle(hands) |