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
#!/bin/zsh | |
# virtualenvwrapper | |
# source /usr/local/bin/virtualenvwrapper.sh | |
# antigen config | |
source /home/neddy/antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle pip | |
antigen bundle rimraf/k | |
antigen bundle zsh-users/zsh-syntax-highlighting |
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
$red50: #ffebee; | |
$red100: #ffcdd2; | |
$red200: #ef9a9a; | |
$red300: #e57373; | |
$red400: #ef5350; | |
$red500: #f44336; | |
$red600: #e53935; | |
$red700: #d32f2f; | |
$red800: #c62828; | |
$red900: #b71c1c; |
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
// needs moment.js | |
angular.module('app', []) | |
.filter('smallMoment', function() { | |
return function(data) { | |
return moment(data).format('M/D/YYYY H:mm:ss A'); | |
}; | |
}); | |
// in template: {{ someDate | smallMoment }} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Resesif</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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
var gulp = require('gulp'), | |
gutil = require('gulp-util'); | |
var ngmin = require('gulp-ng-annotate'), | |
inject = require('gulp-inject'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
clean = require('gulp-rimraf'), | |
watch = require('gulp-watch'), | |
crypto = require('crypto'), |
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
from django.db import models | |
from itertools import chain | |
class ModelName(models.Model): | |
def __init__(self, *args, **kwargs): | |
super(ModelName, self).__init__(*args, **kwargs) | |
if self.pk is not None: | |
field_names = [f.name for f in chain(self._meta.fields, self._meta.many_to_many)] | |
self._old = dict((fname, getattr(self, fname, None)) for fname in field_names) | |
else: |