This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function extend(des, src, override) { | |
if (src instanceof Array) { | |
for (var i = 0, len = src.length; i < len; i++) | |
this._extend(des, src[i], override); | |
} | |
for (var ii in src) { | |
if (override || !(ii in des)) { | |
des[ii] = src[ii]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint node: true*/ | |
'use strict'; | |
/** | |
* Created by stkevintan(https://github.com/stkevintan/Cube/blob/master/src/model/Crypto.js) on 15-7-19. | |
* With modifications made by Tab/jy | |
*/ | |
const Crypto = require('crypto'); | |
const BigInt = require('big-integer'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"lsauer.com , lo sauer 2013" | |
"JavaScript List of selected MIME types" | |
"A comprehensive MIME List is available here: https://gist.github.com/lsauer/2838503" | |
"mime": { | |
"a": "application/octet-stream", | |
"ai": "application/postscript", | |
"aif": "audio/x-aiff", | |
"aifc": "audio/x-aiff", | |
"aiff": "audio/x-aiff", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
say --voice="Agnes" Isn't it nice to have a computer that will talk to you? | |
say --voice="Albert" I have a frog in my throat. No, I mean a real frog! | |
say --voice="Alex" Most people recognize me by my voice. | |
say --voice="Alice" Salve, mi chiamo Alice e sono una voce italiana. | |
say --voice="Alva" Hej, jag heter Alva. Jag är en svensk röst. | |
say --voice="Amelie" Bonjour, je m ’ appelle Amelie. Je suis une voix canadienne. | |
say --voice="Anna" Hallo, ich heiße Anna und ich bin eine deutsche Stimme. | |
say --voice="Bad News" The light you see at the end of the tunnel is the headlamp of a fast approaching train. | |
say --voice="Bahh" Do not pull the wool over my eyes. | |
say --voice="Bells" Time flies when you are having fun. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script for installing Fish Shell on systems without root access. | |
# Fish Shell will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
FHISH_SHELL_VERSION=2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPeerConnection() { | |
var RTCPeerConnection = window.RTCPeerConnection || | |
window.mozRTCPeerConnection || | |
window.webkitRTCPeerConnection; | |
//bypass naive webrtc blocking | |
if (!RTCPeerConnection) { | |
var iframe = document.createElement('iframe'); | |
iframe.style.display = 'none'; | |
document.body.appendChild(iframe); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conky.config = { | |
alignment = 'top_right', | |
background = false, | |
border_width = 0, | |
draw_graph_borders = false, | |
color0 = '#2A558C', | |
color1 = '#6698D9', | |
color2 = '#2E4159', | |
color3 = '#B3CFF2', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** modified by tabjy | |
* accroding to https://github.com/sultanxda/android_kernel_oneplus_msm8996/commit/abc05b16bbd33521c2fffaf491c5657a94bfcfc5 | |
* and https://github.com/sultanxda/android_kernel_oneplus_msm8996/commit/3a450b89a44c5e2eb357ff797298c6201c78e3b3 | |
* to bypass SafetyNet | |
*/ | |
#include <linux/fs.h> | |
#include <linux/init.h> | |
#include <linux/proc_fs.h> | |
#include <linux/seq_file.h> | |
#include <asm/setup.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// exercise-loops-and-functions.go -------------------------------- | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func newton(x float64) float64 { | |
// base case |
OlderNewer