Skip to content

Instantly share code, notes, and snippets.

View stalinwesley's full-sized avatar

StalinWesley stalinwesley

  • Chennai Tamilnadu India
View GitHub Profile
@staltz
staltz / introrx.md
Last active August 2, 2025 18:25
The introduction to Reactive Programming you've been missing
@dideler
dideler / routes.md
Last active April 8, 2024 04:15
Rails Routes

A summary of the Rails Guides on Routes, plus other tips.

The Rails router recognizes URLs and dispatches them to a controller's action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views.

Examples

# Redirects /orders/report to orders#report.
get 'orders/report', to: 'orders#report'
@shakyShane
shakyShane / BootstrapForm.php
Created August 5, 2012 18:47
Twitter Bootstrap Form Generator PHP.
<?php
/**
*
* Helper Class to output correct Twitter Bootstrap Markup.
* Only option for now is the horizontal Form.
*
* Usage :
*
$form = new BootstrapForm('add_user');
$form->addInput('text-input', 'user_name', 'Your name:', true);
@zpea
zpea / html5_video_conv.bash
Created July 21, 2012 03:00
little shell script to convert video files to the various HTML5 video formats/codecs using ffmpeg. Also generates the line for embedding the video using the videoJS plugin for wordpress.
#!/bin/bash
#
# video conversion script for publishing as HTML 5 video, via videojs (with hd button extension)
# 2011 by zpea
# feel free to use as public domain / Creative Commons CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/)
#
FFMPEG=/usr/bin/ffmpeg
HD_SUFFIX='_hd'
@grantmichaels
grantmichaels / app.js
Created May 13, 2012 20:50 — forked from ag4ve/app.js
Simple blog with node.js, express and mongodb
var express = require('express'),
app = express.createServer(),
Post = require('./models/post');
app.configure(function () {
app.use(express.methodOverride());
app.use(express.bodyDecoder());
app.use(express.staticProvider(__dirname + '/public'));
app.use(express.compiler({src: __dirname + '/public', enable: ['sass']}));
app.use(express.logger());