This file contains hidden or 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
#include "DigiKeyboard.h" | |
void setup() { | |
// don't need to set anything up to use DigiKeyboard | |
pinMode(1,OUTPUT); | |
} | |
void loop() { | |
digitalWrite(1, HIGH); |
This file contains hidden or 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
#!/usr/bin/env python3 | |
from collections import namedtuple | |
import csv | |
from datetime import datetime | |
import os | |
import re | |
import subprocess | |
Commit = namedtuple('Commit', ['hash', 'subject', 'date']) | |
WordCount = namedtuple('WordCount', ['filename', 'lines', 'words']) |
This file contains hidden or 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
# from: http://stackoverflow.com/a/16753946 | |
# You can call a function on button click to print the value like this | |
<input type="button" id="btnSearch" value="Search" onclick="GetValue();" /> | |
<p id="message" ></p> | |
function GetValue() | |
{ | |
var myarray= new Array("item1","item2","item3"); | |
var random = myarray[Math.floor(Math.random() * myarray.length)]; |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
require(XML) | |
require(RCurl) | |
require(stringr) | |
require(rentrez) | |
require(rjson) | |
require(reshape2) | |
require(ggmap) | |
require(mapproj) | |
require(devtools) |