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 python | |
| import sys | |
| import string | |
| # while lines are hashed as-is into a map where values are | |
| # sets of indices. | |
| def hash_whole(hashes, idx, s): | |
| h = hash(s) | |
| if not h in hashes: |
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
| import sys | |
| import scipy.sparse as sps | |
| import numpy as np | |
| nodes = 1000000 | |
| beta = 0.8 | |
| eps = 1e-6 | |
| V = set() | |
| degs = {} |
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
| Counting | |
| ------------ | |
| **Permutations** | |
| $n! = n(n-1)(n-2) ... 1$ | |
| **k-Permutations** | |
| $\frac{n!}{(n-k)!}$ | |
| **Combinations** |
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 <SoftwareSerial.h> | |
| #include <RF24Network.h> | |
| #include <RF24.h> | |
| #include <SPI.h> | |
| #include <EEPROM.h> | |
| RF24 radio(2, 3); | |
| RF24Network network(radio); | |
| const int rx = 1, tx = 0; |
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
| .lib | |
| *.cpp.o | |
| *.ino.bin | |
| *.ino.elf | |
| *.eep | |
| .*.swp |
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
| .lib | |
| *.cpp.o | |
| tinysensor.ino.bin | |
| tinysensor.ino.elf | |
| tinysensor.eep |
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 <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <sys/select.h> | |
| #include <fcntl.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <termios.h> | |
| #include <string.h> | |
| #include <unistd.h> |
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
| #!/bin/bash | |
| PATH=/usr/local/bin:$PATH | |
| WEMO=wemo | |
| . wemo_functions.sh | |
| case $# in | |
| 0) | |
| wemo_get $WEMO |
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 <EtherCard.h> | |
| #include <TinyXML.h> | |
| #include <Adafruit_GFX.h> | |
| #include <Adafruit_ST7735.h> | |
| #include <SPI.h> | |
| #include <petit_fatfs.h> | |
| #include <MemoryFree.h> | |
| #include <stdlib.h> |
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/perl -w | |
| use 5.005; | |
| #use strict; | |
| use Getopt::Std; | |
| use IO::Socket; | |
| use IO::Select; | |
| use Fcntl; | |
| use Date::Parse; | |
| use Switch; |