Skip to content

Instantly share code, notes, and snippets.

View ZeroDragon's full-sized avatar
🌮
Tacos de canasta

Zero Dragon ZeroDragon

🌮
Tacos de canasta
View GitHub Profile
@ZeroDragon
ZeroDragon / Genesis.GOD
Created October 5, 2012 04:10
La creación del mundo
//Así se creó el mundo version Programador... (se vale contribuir en los comentarios)
//tambien pueden hacer un fork y luego hacemos un merge :P
//Genesis... Documentación en http://iglesia.net/biblia/libros/genesis.html
1:0 void();
1:1 BEGIN tierra = new Earth();
cielo = new Heaven();
1:2 tierra.oscuridad = 1;
tierra.agua = new Water();
1:3 tierra.luz = new Light();
tierra.luz.active = 1; //:megusta:
[
{
"keys": ["command+shift+r"], "command": "browser_refresh", "args": {
"auto_save": true,
"delay": 0.0,
"activate_browser": false,
"browser_name" : "all"
}
},
/* C O N S O L E L O G */
@ZeroDragon
ZeroDragon / pro custom.terminal
Created May 24, 2013 16:28
Mi tema de la terminal. La uso en conjunto con el tema fwalch del oh-my-zsh
<?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>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjMzMjQ3Nzk2NzQgMC40MDU2NjQ3MDg4IDAuNjM4OTU3Njc5MwAQAYAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
<?php if(!defined("BASEPATH")){ exit("No direct script access allowed"); }
/**
* Multi-Upload
*
* Extends CodeIgniters native Upload class to add support for multiple
* uploads.
*
* @package CodeIgniter
* @subpackage Libraries
@ZeroDragon
ZeroDragon / tail.sh
Last active December 23, 2015 18:29
A small bash script to add syntax colors to a php.log
#!/bin/bash
func (){
local BLACK=`echo -en '\e[30m'`
local RED=`echo -en '\e[31m'`
local GREEN=`echo -en '\e[32m'`
local YELLOW=`echo -en '\e[33m'`
local BLUE=`echo -en '\e[34m'`
local MAGENTA=`echo -en '\e[35m'`
local CYAN=`echo -en '\e[36m'`
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
# create our directories
@ZeroDragon
ZeroDragon / How to clone a git repo to an existing folder (not empty).md
Last active April 21, 2024 02:41
How to clone a git repo to an existing folder (not empty)
  1. First get to the existing directory
    $ cd my/folder/

  2. Now start a new git repository
    $ git init

  3. Identify if the current elements on the directory are needed or not and add them to the .gitignore file. When ready...
    $ vim .gitignore

  4. When ready create the first commit on the server

@ZeroDragon
ZeroDragon / Custom-Git-Commit.md
Last active December 27, 2015 01:09
Bash file to automatize git stages

#Custom git commit

##Install

  1. Save this bash file to a safe place
  2. give it execute permissions chmod +x stage.sh
    [3] create an alias on your .bash_profile or .zshrc
    alias stage='. ~/path-to-file/stage.sh'

##Usage $stage 'commit message'

javascript:(function() {
var bookmarklet = {
init: function() {
this.parse();
},
parse: function() {
page = "";
$(".PlaylistPage:visible")
.children(".TrackList")
.find(".Track")
@ZeroDragon
ZeroDragon / Gruntfile.coffee
Last active December 31, 2015 07:09
Setup de Grunt DEMO, para ver toda la explicación, está en http://www.zerothedragon.com/686/grunt-es-lo-que-necesitas/ :D
module.exports = (grunt)->
grunt.loadNpmTasks 'grunt-contrib-watch';
grunt.loadNpmTasks 'grunt-yui-compressor';
grunt.loadNpmTasks 'grunt-contrib-less';
grunt.loadNpmTasks 'grunt-contrib-clean';
grunt.registerTask('default', ['watch']);
grunt.initConfig {
watch: {