Skip to content

Instantly share code, notes, and snippets.

View sandeepmistry's full-sized avatar

Sandeep Mistry sandeepmistry

View GitHub Profile
@don
don / ces_scavenger_hunt.js
Created January 3, 2014 23:07
Emulate iBeacons with NodeJS for the CES Scavenger Hunt App http://makezine.com/2014/01/03/hacking-the-ces-scavenger-hunt/
var bleno = require('bleno'),
uuid = '842AF9C408F511E39282F23C91AEC05E',
major = 65000,
minor = 65000,
measuredPower = -59;
var intervalId = setInterval(function() {
bleno.stopAdvertising();
minor++;
if (minor > 65009) {
@tbrianjones
tbrianjones / free_email_provider_domains.txt
Last active May 4, 2024 17:03
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@fform
fform / gist:5259003
Created March 27, 2013 23:13
Sketch Textures and Templates
@klange
klange / _.md
Last active December 2, 2023 20:36
It's a résumé, as a readable and compilable C source file. Since Hacker News got here, this has been updated to be most of my actual résumé. This isn't a serious document, just a concept to annoy people who talk about recruiting and the formats they accept résumés in. It's also relatively representative of my coding style.

Since this is on Hacker News and reddit...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is a good bit crazier.
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • Since people kept complaining, I've fixed the assignments of string literals to non-const char *s.
  • My use of type * name, however, is entirely intentional.
  • If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at le
@reid
reid / remote.md
Created December 31, 2011 17:37
Garage door opener with Arduino

iPhone Garage Remote

Instead of buying two door remotes, I bought one and control it with my iPhone.

Parts

First, I stole nearly everything from MyDoorOpener.com. Their version uses parts I could not find and requires a $6 iPhone app. Let's improve on that.

Almost everything can be found at RadioShack.

@ajmaradiaga
ajmaradiaga / BluetoothRestart
Created April 27, 2011 00:16
Force Bluetooth Restart on Mac
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist