Skip to content

Instantly share code, notes, and snippets.

View sohan's full-sized avatar

Sohan Jain sohan

View GitHub Profile
@sohan
sohan / 1_install_udl_deps.sh
Last active August 29, 2015 14:04
Install cURL UDL Source on Vertica
#!/bin/sh
# Run on a vertica node. Every node needs curl at least cURL installed
# Install curl and gcc
sudo yum install -y gcc-c++
sudo yum install -y curl
sudo yum install -y libcurl-devel
# `make` will fail on some libs that require Java, but will build the cURL source
cd /opt/vertica/sdk/examples && make
@sohan
sohan / 0_reuse_code.js
Created July 14, 2014 14:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sohan
sohan / player-song-view.js
Created January 15, 2014 21:38
Correct way of adding child views to a specific dom element in the parent's collection view in Chaplin.js. Uses the option listSelector instead of container. Reference: http://sohanjain.com/2014/01/chaplin-jss-container-containermethod-and-listselector-options/
define([
'views/base/view',
'jquery',
'text!templates/player-song.hbs',
], function(View, $, template) {
'use strict';
var PlayerSongView = View.extend({
autoRender: true,
autoAttach: true,
@sohan
sohan / player-song-view.js
Last active January 3, 2016 09:49
Incorrect way of adding child views to a specific dom element in the parent's collection view in Chaplin.js. Reference: http://sohanjain.com/2014/01/chaplin-jss-container-containermethod-and-listselector-options/
define([
'views/base/view',
'jquery',
'text!templates/player-song.hbs',
], function(View, $, template) {
'use strict';
var PlayerSongView = View.extend({
autoRender: true,
autoAttach: true,