I hereby claim:
- I am gusga on github.
- I am gusga (https://keybase.io/gusga) on keybase.
- I have a public key whose fingerprint is 6541 70EF DC04 1CD3 43F3 E3C5 5F45 CBE5 C936 3153
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# Libraries::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
require 'rubygems' | |
require 'sinatra/base' | |
require 'slim' | |
require 'sass' | |
require 'coffee-script' | |
# Application::::::::::::::::::::::::::::::::::::::::::::::::::: |
#!/bin/bash | |
while : | |
do | |
clear | |
date +"%A %B %d, %Y at %T" | |
lines=`tput lines` | |
lines=`expr $lines - 5` | |
git --no-pager log --color --all --pretty='format:%C(auto)%d%Creset %C(yellow)%h%Creset %C(green)%an%Creset - %s - %C(cyan)%cr%Creset' --graph $* | head -n $lines | |
sleep 1 |
I hereby claim:
To claim this, I am signing this object:
37107287533902102798797998220837590246510135740250 | |
46376937677490009712648124896970078050417018260538 | |
74324986199524741059474233309513058123726617309629 | |
91942213363574161572522430563301811072406154908250 | |
23067588207539346171171980310421047513778063246676 | |
89261670696623633820136378418383684178734361726757 | |
28112879812849979408065481931592621691275889832738 | |
44274228917432520321923589422876796487670272189318 | |
47451445736001306439091167216856844588711603153276 | |
70386486105843025439939619828917593665686757934951 |
###It could just be your system management controller. Try resetting it using the following procedure: ##Resetting the System Management Controller (SMC) Note: Portable computers that have a battery you should not remove on your own include MacBook Pro (Early 2009) and later, all models of MacBook Air, and MacBook (Late 2009).
// main.c | |
// ejercicio_uno_dos | |
// | |
// Created by Gustavo Gimenez on 7/8/14. | |
// Copyright (c) 2014 Gustavo Gimenez. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> |
##CREATING PDF USING PRAWN IN ROR
Recently i was working on a client project and i realized that i need to create a PDF for generating a invoice on the fly. I wanted something
As i started searching my way for options, i found out that there are lot of gems and plugins available in the rails community for generating PDF.
There were two options for me which were widely used for generating PDF.
#Implement in constant time, i.e. O(1), the following operations: push, pop, retrieve the minimum element. | |
class Stack | |
attr_accessor :queue | |
def initialize | |
@queue = [] | |
@min = [] | |
end | |
def push e | |
@queue.push(e) |
@textfile = ARGV.first | |
#Mi codigo bonito | |
def read_file_and_write_pairs(filename) | |
read_file = File.open(Dir.glob(File.join("**",filename)).first, 'r' ) | |
temp_file = File.open("temp.txt", 'w' ) | |
cdp_string = "" | |
read_file.readlines.each do |line| | |
#si linea tiene CDP guardar variable (no se como guardar en una variable que pueda usar luego) | |
#dentro de la iteracion declaras dos variables |