Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Alan.He alanhg

🎯
Focusing
View GitHub Profile
@jaysonrowe
jaysonrowe / FizzBuzz.js
Created Jan 11, 2012
FizzBuzz JavaScript solution
View FizzBuzz.js
for (var i=1; i <= 20; i++)
{
if (i % 15 == 0)
console.log("FizzBuzz");
else if (i % 3 == 0)
console.log("Fizz");
else if (i % 5 == 0)
console.log("Buzz");
else
console.log(i);
@JavierParra
JavierParra / radialBattery.sh
Created Sep 8, 2011
Displays the battery status of your devices, designed to be used with GeekTool
View radialBattery.sh
##################################################################
# YOU NEED IMAGE MAGICK TO RUN THIS #
# DON'T FORGET TO CONFIGURE THE FIRST FEW LINES OF THIS FILE #
##################################################################
# Usage
# 1st - Run this script as a shell geeklet.
#
# You need to pass one of the following parameters:
# ·trackpad
You can’t perform that action at this time.