Skip to content

Instantly share code, notes, and snippets.

@andyfoster
andyfoster / dabblet.css
Created November 24, 2015 08:22 — forked from jackie/dabblet.css
FizzBuzz with CSS
/**
* FizzBuzz with CSS
*/
body {
counter-reset: fizzbuzz;
}
div {
@andyfoster
andyfoster / dabblet.css
Created November 24, 2015 08:21 — forked from ggamel/dabblet.css
FizzBuzz with CSS
/**
* FizzBuzz with CSS
*/
body {
counter-reset: fizzbuzz;
}
div {
@andyfoster
andyfoster / weather.rb
Created November 21, 2015 00:33 — forked from dan-c-underwood/weather.rb
Alternate version (with Emoji) of the Today-Scripts weather script.
require "json"
require "net/http"
require "colorize"
def formatTemp(temp)
temp_i = temp.to_i
temp = temp + "°C"
case
when temp_i <= 0
temp.colorize(:blue)
@andyfoster
andyfoster / curl.md
Created November 3, 2015 01:12 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@andyfoster
andyfoster / 0_reuse_code.js
Created November 2, 2015 20:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@andyfoster
andyfoster / README.md
Last active September 22, 2015 03:56 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@andyfoster
andyfoster / bit-reverse.js
Last active September 7, 2015 00:16 — forked from tleunen/bit-reverse.js
Function to reverse the bits of a given integer
function bitRev(N) {
var r = 0;
val = 0;
while(N > 0) {
val = N&1;
N >>= 1;
r += val&1;
r <<= 1;