Skip to content

Instantly share code, notes, and snippets.

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...');
# 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
@properapp
properapp / gist:7034835
Created October 18, 2013 00:51
Example of using a localStorage check to test if a browser has access to local storage and using the check as a before filter in Iron Router for Meteor.
# 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
@lucasgonze
lucasgonze / gist:9880502a396bcd113108
Created October 1, 2014 17:02
Tunnel incantation
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...
@Vestride
Vestride / encoding-video.md
Last active November 15, 2024 17:57
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@taskylizard
taskylizard / fmhy.md
Last active November 19, 2024 09:32
/r/freemediaheckyeah, in one single file (view raw)