Skip to content

Instantly share code, notes, and snippets.

View andru255's full-sized avatar
🇵🇪
:)

Andrés Muñoz andru255

🇵🇪
:)
View GitHub Profile
@joshualambert
joshualambert / install-git-ftp
Created September 14, 2012 17:45
How to install git-ftp
(Copied From: http://alexfluger.blogspot.com/2012/01/easy-deploy-to-ftp-from-git.html) (Thank you Alex, this has helped me alot!)
Easy deploy to FTP from GIT
Have a shared hosting? No SSH and Git? Take a look on git-ftp. It is very easy to install and use. Here I will show you how to install it and start to use.
Installation
First, clone source code repository from github (it will create git-ftp folder):
@domenic
domenic / promises.md
Last active July 17, 2025 03:03
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
#!/usr/bin/python
'''
A tidier version of this can be found here https://github.com/rwky/Compare-git-branches
Copyright (c) 2012 Rowan Wookey <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@ninjascience
ninjascience / Gruntfile.js
Created January 24, 2013 17:52
Gruntfile.js for testing with Jasmine and RequireJS and using Istanbul for coverage.
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
meta : {
// Specify where our test files are. Once we get all the tests switched over we can use 'test/js/**/*.spec.js' to automatically load all tests.
specs : ['test/js/src/**/*.spec.js'],
bin : {
coverage: 'js/bin/coverage'
@sveinn
sveinn / gist:5021006
Last active December 14, 2015 03:29
LA RubyConf 2013
Refactoring Fat Models with Patterns: (http://www.larubyconf.com/proposals/43)
==============================================================================
@brynary
@codeclimate
codeclimate.com
http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/
github.com/codeclimate/refactoring-fat-models
https://github.com/solnic/virtus
1 value objects # data clumps, attribute logic. if lot of methods have the same prefix
@shawnbot
shawnbot / load-queue.js
Created March 20, 2013 23:50
queue + d3 = asynchronous, parallelized, event-dispatching load queue
var loadQueue = function() {
var q = queue(),
defer = q.defer,
dispatch = d3.dispatch("progress", "complete"),
requests = [];
q.defer = function(load, url) {
return defer(function(callback) {
var req = load(url, function(error, data) {
req.loaded = req.total;
@maxivak
maxivak / rails-assets-cdn.md
Last active May 24, 2017 11:30
Rails assets and CDN

Rails assets CDN

# serve all assets from CDN  server
config.action_controller.asset_host = 'http://cdn.mydomain.com'

#or if your files in a folder on CDN server
config.action_controller.asset_host = 'http://cdn.mydomain.com/myfolder'

@magnetikonline
magnetikonline / README.md
Last active February 7, 2025 07:27
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@LeaVerou
LeaVerou / dabblet.css
Created April 5, 2013 20:58
Draw SVG in canvas
/**
* Draw SVG in canvas
*/
@t-cyrill
t-cyrill / build-tmux.sh
Last active June 27, 2024 14:08
build tmux 1.8 on debian squeeze
#!/bin/bash
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
tar -xf libevent-2.0.21-stable.tar.gz
./configure
make
make verify
sudo make install