Forked from Chris Coyier's Pen Basic Example of SVG Line Drawing, Backward and Forward.
A Pen by Captain Anonymous on CodePen.
" Base .vimrc file | |
" Installation Instructions | |
" 1. Place file in home directory as .vimrc | |
" 2. Run the following command in terminal | |
" mkdir .vim .vim/bundle .vim/backup .vim/swap .vim/cache .vim/undo; git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
" 3. Launch Vim and Run | |
" :PluginInstall | |
" Or from shell vim +PluginInstall +qall | |
" 4. Restart Vim |
require 'net/http' | |
require 'thor/group' | |
require './lib/daemon' | |
class Test < Thor | |
include Thor::Actions | |
include Thor::Daemon | |
desc "start", "running test servers" | |
def start |
Forked from Chris Coyier's Pen Basic Example of SVG Line Drawing, Backward and Forward.
A Pen by Captain Anonymous on CodePen.
module SoftDeletable | |
extend ActiveSupport::Concern | |
class ModelHasAssignedValues < StandardError; end | |
included do | |
scope :deleted, ->{ where.not(deleted: true) } | |
scope :without_deleted, ->{ where(deleted: false) } | |
scope :with_deleted, ->{ unscope(where: :deleted) } | |
default_scope { without_deleted } |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="pygmalion" | |
# Uncomment the following line to use case-sensitive completion. |
#include "ami.h" | |
#include "ami_bmp.h" | |
#include <stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
// funcion que nos permite unir los canales de dos imagenes, separados por una línea negra de | |
//4 pixeles | |
void aan_unir_canales_unsigned_char(unsigned char *canal1, unsigned char *canal2, | |
unsigned char **canal_output, int width, int height){ | |
int i,j,k; |
cd ~/.vim/ | |
git submodule add git://github.com/nono/vim-handlebars.git bundle/handlebars | |
vim bundle/handlebars/example.handlebars |
Creamos una rama en el proyecto para nuestra funcionalidad, normalmente estas funcionalidades o tareas, se suelen asociar a un gestor de tareas (como por ejemplo Teambox, pivotaltracker, clockingit...), y suelen contener una id asi que la gente crea las ramas por ejemplo 34-add-users y asi cuando tienes muchas ramas, y en las cuales por ejemplo se podria repetir un nombre por el fallo de poner algo genérico como nombre de la rama, por ejemplo fixed-test, si quieres hacer referencia a una concreta eso es lo mejor para saber a que rama dirigirnos para revisar una tarea si nos hace falta.
Simplemente trabaja haciendo commits en esa rama hasta terminar, para hacer memoria recordar el flujo normal de de hacer commits y subirlos a una rama en concreto: -$ git add . -$ git commit -m git push servidor rama
#!/usr/bin/env ruby | |
puts "Dime tu nombre guapo" | |
var = gets.chomp | |
puts "hola #{var} yo soy Sofia" | |
puts "Quieres verme?" | |
if gets.chomp == "si" | |
`chromium-browser --app=http://www.wallpapergate.com/data/media/1973/Sofia_Zamolo_012.jpg` | |
else | |
puts "Las cosas conmigo tienen que ser claras pajero" |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
puts "introduzca palabras para contarlas: " | |
text = gets.chomp | |
words = text.split | |
frequencies = {} | |
words.each do |w| | |
frequencies.has_key?(w) ? frequencies[w] += 1 : frequencies[w] = 1 | |
end |