NOTE: This is outdated. Check the comments below for more up-to-date forks of this gist.
Improved YARD CHEATSHEET http://yardoc.org
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
__author__ = 'maxim' | |
import numpy as np | |
import gensim | |
import string |
/* (Released under MIT License, copyright Phil Ayres, see LICENSE file for full license) | |
Convert HTML5 input pattern attribute to a jQuery-Mask-Plugin compatible mask. | |
This follows some basic common regex patterns, but by no means all that could be applied to | |
HTML5 inputs. It is sufficient for simple cases. | |
Obviously you will need the jQuery-Mask-Plugin | |
Get it from: https://github.com/igorescobar/jQuery-Mask-Plugin | |
Usage: |
NOTE: This is outdated. Check the comments below for more up-to-date forks of this gist.
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
import tensorflow as tf | |
""" | |
Multi dimensional softmax, | |
refer to https://github.com/tensorflow/tensorflow/issues/210 | |
compute softmax along the dimension of target | |
the native softmax only supports batch_size x dimension | |
""" | |
def softmax(target, axis, name=None): |
# A commented nginx configuration file for Ruby on Rails | |
# | |
# Author: Tommaso Pavese | |
# [email protected] | |
# http://tommaso.pavese.me | |
# | |
# License: http://www.wtfpl.net/ | |
# | |
# | |
# Tested with: |
# Twilio HTTP HAProxy Configuration | |
# Version: 0.1 | |
global | |
daemon | |
log 127.0.0.1 local0 info | |
maxconn 60000 | |
spread-checks 3 | |
# Create background noise profile from mp3 | |
/usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
# Remove noise from mp3 using profile | |
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
# Remove silence from mp3 | |
/usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
# Remove noise and silence in a single command |
#!/usr/bin/env python | |
# Unity indicator for evolution-less clock and date display | |
# author: phil ayres | |
# 24 Oct 2011 | |
import gobject | |
import gtk | |
import appindicator | |
import os, sys | |
import time |
#!/bin/sh | |
######################################################## | |
# history | |
######################################################## | |
# | |
# 0.3 (2011-02-08) | |
# - create/update configuration template 'InitialConfig' instead | |
# of 'Default', which is not editable | |
# |