View main.go
package main
import (
View at_and_instance_variable.rb
#colleague asks
class A
attr_accessor :b,:d
def a
self.b = 10
@d = 20
#!/usr/bin/env python
from import wavfile
import os
import numpy as np
import argparse
from tqdm import tqdm
# Utility functions
View foo.html
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<div id="player"></div>
window.onload = function() {
var player = new Clappr.Player({
View index.html
<!DOCTYPE html>
var map = {};
var toggle = true;
keyEvent = function(e) {
map[e.keyCode] = e.type == 'keydown';
if(map[17] && map[65]) {
img = document.getElementById("image");
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
View gist:9b6705eecd1fcb20b97506a6ddb7bb6e
# Persist message in a queue
lpush channel1.queue message
# Publish message to any connected subscriber
publish channel1 message
# Subscribe to channel1
subscribe channel1
View gist:54becc25abe46ba98c4c7062e81e2845
package main
import (
func main() {
mapD := map[string]interface{}{"deploy_status": "public", "status": "live", "version": 2}
mapB, _ := json.Marshal(mapD)
View compress.go
import (
func zipit(source, target string) error {
zipfile, err := os.Create(target)
View round.go
package main
import (
func Round(val float64, roundOn float64, places int ) (newVal float64) {
var round float64
pow := math.Pow(10, float64(places))