Skip to content

Instantly share code, notes, and snippets.

View nvm_install.sh
#!/usr/bin/env bash
NVM_DIR="$HOME/.nvm"
if ! hash git 2>/dev/null; then
echo >&2 "!!! You need to install git"
exit 1
fi
if [ -d "$NVM_DIR" ]; then
View jsbin.movuqu.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script type="text/x-handlebars" data-template-name="game">
($game->game_status == 'live')
View jsbin.xikepe.css
/* Put your CSS here */
html, body {
margin: 20px;
}
View package.json
{
"name": "client",
"version": "0.0.0",
"private": true,
"directories": {
"doc": "doc",
"test": "test"
},
"scripts": {
"start": "ember server",
View ember-crud-pattern.js
App.PostsController = Em.ArrayController.extend({
actions: {
create: function () {
// some validation logic here
return this.send('createPost');
},
save: function (model) {
// some validation logic here
View .vimrc
"let &runtimepath.=',$HOME/.vim'
set nocompatible "we want latest vim settings and options
so ~/.vim/plugins.vim
"-------------General Settings--------------"
set directory+=$HOME
set directory+=$TEMP
View vimrc.vim
let &runtimepath.=',$HOME/.vim'
set nocompatible "we want latest vim settings and options
so ~/.vim/plugins.vim
"-------------General Settings--------------"
set directory+=$HOME
set directory+=$TEMP
View bhab_parser.tcl
puts "Loading BHAB Parser"
package require csv
package require struct::matrix
catch {
#doing a lot of reloading on the data matrix
#need to delete the data command before issuing the
#struct command again
rename data {}
}
View bhab_validator.tcl
#for debugging purposes use this command in the console
#array set test [parseB5evCsv "$::env(BHAB)/tests/fixtures/B5EV_TD_parameter_template_examplate.csv"]
proc validateB5evData {_parsedData sourceLibrary} {
#start validating if cells exist
# 1. first validate that top level cells exist for shit reg and corner cells
array set parsedData $_parsedData
#parray parsedData
View vimrc.vim
let &runtimepath.=',$HOME/.vim'
set nocompatible "we want latest vim settings and options
so ~/.vim/plugins.vim
"so ~/.vim/indent/tcl.vim
"-------------General Settings--------------"
set directory+=$HOME
set directory+=$TEMP