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
| Verifying my Blockstack ID is secured with the address 1NKAeaGUag7tpGxpy6unSrAWRZhXJe5JQx https://explorer.blockstack.org/address/1NKAeaGUag7tpGxpy6unSrAWRZhXJe5JQx |
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
| ;;; Fibonacci Sequence | |
| SA 0x80 | |
| COPY %rA | |
| SA 0x00 | |
| COPY %rB | |
| STOR %rB %rA ; set F(0)=0 | |
| SA 0x81 | |
| COPY %rA |
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
| ;;; Sum an array | |
| ;; Load 0 (where iterator initializes) into %rB | |
| SA 0x01 | |
| COPY %rB | |
| ;; Load n (length of array, also number of iterations when summing the array) into %rA | |
| cond: LLAC n | |
| COPY %rD ; %rD = &n | |
| LOAD %rA %rD ; %rA = n |
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
| csv = require 'csv' | |
| _ = require 'underscore' | |
| Table = require 'cli-table' | |
| class Class | |
| constructor: (@code, @sect, @title, @teacher, @room, @capacity, @grade) -> | |
| classes = {} | |
| schedule = { | |
| M: [[], [], [], [], [], [], [], []] # DAY: period[classess[]] |
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
| palindrome = (string) -> if string.toUppercase() == string.toUppercase().split('').reverse().join('') then return true else return false |
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
| const int ledPin = 9; // the pin that the LED is attached to | |
| void setup() | |
| { | |
| // initialize the serial communication: | |
| Serial.begin(9600); | |
| // initialize the ledPin as an output: | |
| pinMode(ledPin, OUTPUT); | |
| } |
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
| int ledPin = 13; | |
| int i = 0; | |
| int fib(int initial) { | |
| if (initial <=1) { | |
| return initial; | |
| } | |
| else { | |
| return fib(initial-1)+fib(initial-2); | |
| } |
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 'twitter' | |
| Twitter.configure do |config| | |
| config.consumer_key = '' | |
| config.consumer_secret = '' | |
| config.oauth_token = '' | |
| config.oauth_token_secret = '' | |
| end | |
| if ARGV[0] == '-t' and ARGV[1] # if -t flag and tweet exist |
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
| var https = require('https'); | |
| var url = require('url'); | |
| var util = require('util'); | |
| var exec = require('child_process').exec; | |
| var fb_user_id =; | |
| var fb_access_token = ''; | |
| var path = '/' + fb_user_id + '/notifications/' + '?access_token=' + fb_access_token; | |
| var options = { |