This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import path | |
from pydub import AudioSegment | |
import sys | |
# pydub use ffmpeg to file manupulation | |
# don't forget to install ffmpeg | |
sys.path.append('/usr/local/bin/ffmpeg') | |
def load_songs(fn): | |
meta = {} | |
songs = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
strict_mode=false | |
PARAMS=() | |
usage() { | |
cat <<EOF | |
Usage: gitstat.sh [since] [before] [arguments] | |
-h, --help Display this help and exit | |
-o, --out OUTFILE Write stats to OUTFILE instead of standard output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21:49:09 ➜ ~ echo 'Hello world' | |
Hello world |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Test1 do | |
def foo(a) do | |
bar = fn x -> | |
x + 1 | |
end | |
bar.(a) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module GeoSmart | |
@base_path = "new_url" | |
@token = "token" | |
@legacy_path = "old_url" | |
class << self | |
attr_accessor :base_path, :token, :legacy_path | |
end | |
class Address |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace common\helpers; | |
/** | |
* HttpHelper provides an interface to make HTTP request | |
*/ | |
class HTTPHelper | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Eric Mill "[email protected]" | |
# turn on universe packages | |
RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
# basics | |
RUN apt-get install -y nginx openssh-server git-core openssh-client curl | |
RUN apt-get install -y nano |