Skip to content

Instantly share code, notes, and snippets.

View Souravgoswami's full-sized avatar
🐵
Working from home

15 Volts Souravgoswami

🐵
Working from home
View GitHub Profile
/*
* Animal Crossing Toy Day on an Arduino, by noobermin (or awindywalker)
*
* Everything except the transcription of the song is in the public domain.
*/
// The tone library conflicts with the Arduino core `tone` and `noTone` routines! They
// register the similar ISR's leading to a conflict. It is needed though as `tone` doesn't work
// with more than one buzzer (port).
// What I did to make it work is I deleted the file in a clean copy of the arduino IDE, commented
@willurd
willurd / web-servers.md
Last active May 10, 2025 14:01
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@Tafkas
Tafkas / computeSunrise.js
Last active August 1, 2024 20:48
A simple sunrise-sunset algorithm taken from http://williams.best.vwh.net/sunrise_sunset_algorithm.htm in JavaScript
function computeSunrise(day, sunrise) {
/*Sunrise/Sunset Algorithm taken from
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm
inputs:
day = day of the year
sunrise = true for sunrise, false for sunset
output:
time of sunrise/sunset in hours */
@bartlomiejdanek
bartlomiejdanek / .irbrc
Created December 20, 2011 19:23
IRB configuration
# Make gems available
require 'rubygems' if RUBY_VERSION <= '1.9.0'
# http://drnicutilities.rubyforge.org/map_by_method/
require 'map_by_method'
# Dr Nic's gem inspired by
# http://redhanded.hobix.com/inspect/stickItInYourIrbrcMethodfinder.html
require 'what_methods'
@sole
sole / xcursor theme tutorial
Created September 9, 2010 12:34
A lightly edited version of the xcursor theme tutorial by the_One at http://kde-look.org/content/show.php?content=11428
<---TUTORIAL FOR CREATING XCURSOR THEMES.--->
<---By ThEOnE @ kde-look--->
<[email protected]>
_______________________________________________________________________________________
| |
| First of all, let me tell you that everything I know I've learned it by inspecting |
| some xcursor themes like jaguarx, and others. |