Moved to https://api.fmhy.net
This file contains 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
When I'm on an open wifi network, I use an SSH tunnel to encrypt my traffic. Here's my script: | |
#!/bin/bash | |
ssh -D 9999 [email protected] " | |
echo ' | |
**** | |
Establishing ssh tunnel... |
This file contains 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
# Function to check localStorage availability | |
hasStorage = -> | |
try | |
mod = new Date | |
localStorage.setItem mod, mod.toString() | |
result = localStorage.getItem(mod) == mod.toString() | |
localStorage.removeItem mod | |
return result | |
This file contains 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
# https://github.com/SachaG/Telescope | |
######################## | |
# it should be | |
sudo apt-get install git npm | |
curl https://install.meteor.com | /bin/sh | |
sudo npm install -g meteorite |
This file contains 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
if (Meteor.is_client) { | |
var userName = "PatelNachiket"; | |
Template.hello.greeting = function () { | |
return "Fetch recent tweets from Twitter stream of user : " ; | |
}; | |
Template.hello.events = { | |
'click #fetchButton' : function () { | |
console.log("Recent tweets from stream!"); | |
$('#fetchButton').attr('disabled','true').val('loading...'); |