Skip to content

Instantly share code, notes, and snippets.

View eseceve's full-sized avatar

Sebas Contreras eseceve

  • SCL
View GitHub Profile
@eseceve
eseceve / Default (OSX) sublime-keymap
Last active October 9, 2015 02:08
My Sublime Text 3 setting
// realpath: User/Default (OSX).sublime-keymap
[
{
"keys": ["#"]
, "command": "insert_snippet"
, "args": {"contents": "{{$0}}"}
, "context":
[
{
"key": "setting.auto_match_enabled"
@eseceve
eseceve / .vimrc
Created October 25, 2012 22:26
Magnet colorscheme for VIM
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = 'magnet'
set background=dark
set cursorline
hi Normal ctermfg=black ctermbg=black
@eseceve
eseceve / gist:4370295
Last active December 10, 2015 02:48 — forked from jslopez/gist:3990739
override "cd" command. Now: - Check virtualenv for activate/deactivate. - Check git and show a status. - Show directory files (with "ls").
# cd + virtualenv activation + ls + git status
function cd() {
# default cd
builtin cd $1;
# virtualenv activation
GIT_DIR=`git rev-parse --git-dir 2> /dev/null`
if [[ $? == 0 ]]
then
if [[ -f $GIT_DIR/../.env/bin/activate ]]
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2 (https://code.google.com/p/iterm2/downloads/list)
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Get scripts for status-right
@eseceve
eseceve / batteryAlert.plist
Last active January 11, 2016 03:18
Applescript for show a alert when the battery is above 80% or under 40% load
<?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>KeepAlive</key>
<false/>
<key>Label</key>
<string>batteryAlert</string>
<key>LowPriorityIO</key>
<true/>
@eseceve
eseceve / .aliases
Last active December 17, 2015 11:50
My dotfiles
# git
alias g="git"
alias ga="git add"
alias gb="git branch"
alias gbn="git checkout -b"
alias gc="git commit -v"
alias gco="git checkout"
alias gd="git diff"
alias gf="git fetch"
alias gl="git pull"
@eseceve
eseceve / .gitignore
Created May 30, 2013 04:32
gitignore template
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@eseceve
eseceve / readme.md
Last active August 6, 2017 04:25 — forked from jonah-williams/readme.markdown
Readme template for Github repository

Project

Description: What does this project do and who does it serve?

Project Setup

How do I, as a developer, start working on the project?

  1. What dependencies does it have (where are they expressed) and how do I install them?
  2. How can I see the project working before I change anything?
@eseceve
eseceve / ng-papers-form.js
Created July 17, 2014 01:45
Directives for use ng-model with Polymer (control) elements: paper-input, paper-slider, paper-checkbox, paper-radio-group and paper-toggle-button
(function(angular, Polymer) {
angular.module('ng-papers-form', [])
.directive('paperCheckbox', ['$timeout', checkFactory])
.directive('paperToggleButton', ['$timeout', checkFactory])
.directive('paperInput', ['$timeout', function($timeout) {
return {
restrict: 'E',
require: '?ngModel',
link: function(scope, element, attrs, ngModel) {
@eseceve
eseceve / app.js
Created August 29, 2014 04:17
Oscar demo
angular.module('ngBoilerplate', [
'templates-app',
'templates-common',
'ngBoilerplate.home',
'ngBoilerplate.about',
'ui.router'
])
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/home');