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...');
@dirkk0
dirkk0 / gist:4530915
Last active December 11, 2015 02:29
Installing Telescope ( https://github.com/SachaG/Telescope)
# 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 user@my-ssh-host.com "
echo '
****
Establishing ssh tunnel...
@Vestride
Vestride / encoding-video.md
Last active June 5, 2024 14:38
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 July 22, 2024 17:32
/r/freemediaheckyeah, in one single file (view raw)