Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
This file contains 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
# /etc/bash/bashrc | |
# | |
# This file is sourced by all *interactive* bash shells on startup, | |
# including some apparently interactive shells such as scp and rcp | |
# that can't tolerate any output. So make sure this doesn't display | |
# anything or bad things will happen ! | |
# Test for an interactive shell. There is no need to set anything |
This file contains 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
def decorates(dec): | |
def handler(*args, **kwargs): | |
if len(args) == 1 and callable(args[0]): | |
func = args[0] | |
return dec(func) | |
else: | |
def wrapper(func): | |
return dec(func, *args, **kwargs) | |
return wrapper | |
return handler |
This file contains 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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
epub_to_opds_entry.py | |
Created by Keith Fahlgren on Tue Apr 5 21:21:02 PDT 2011 | |
Copyright (c) 2011 Threepress. All rights reserved. | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without |
This file contains 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
# Utility classes | |
class UtilMixIn(): | |
def __json_render_field(self, f, only_fields=[], mapped_fields={}): | |
field = self._meta.get_field_by_name(f)[0] | |
if isinstance(field, models.fields.DateTimeField): | |
return time.mktime(getattr(self, f).timetuple()) | |
elif isinstance(field, models.fields.related.ForeignKey): |
This file contains 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
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
This file contains 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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains 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
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
This file contains 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
package main | |
import ( | |
"github.com/codegangsta/negroni" | |
"github.com/gorilla/mux" | |
) | |
func main() { | |
router := mux.NewRouter() | |
apiV1 := router.PathPrefix("/api/v1").Subrouter() |
This file contains 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
1.-Split sides of conversation (only for Call Recorder recordings) | |
1a.-Use Call Recorder droplets, get two AIFF files, rename to LOCAL and REMOTE | |
1b.-Use split script https://gist.github.com/eduo/e5bb6f48757cde29ec1b | |
2.-If audio needs cleanup: | |
a.-Import into Audacity | |
a.1.-Split stereo tracks to mono (optional) | |
b.-Clean bad mic audio (optional) | |
b.1.-Improve Equalization (if bad sound -> Effects -> Equalize -> EMI 78) | |
http://wiki.audacityteam.org/wiki/EQCurvesDownload |
OlderNewer