Skip to content

Instantly share code, notes, and snippets.

View innerspirit's full-sized avatar
🏠
Working from home

Christian Maioli innerspirit

🏠
Working from home
View GitHub Profile
// 75: Promise - basics
// To do: make all tests pass, leave the assert lines unchanged!
describe('a Promise represents an operation that hasn`t completed yet, but is expected in the future', function() {
it('`Promise` is a global function', function() {
const expectedType = 'function';
assert.equal(typeof Promise, expectedType);
});
[
{
"button": "button1",
"count": 1,
"modifiers": ["alt"],
"press_command": "drag_select",
"command": "goto_definition"
}
]
// Convierte "hugh mungus" a "Hugh Mungus"
function titleCase(str) {
// Funcion que se va a usar sobre cada palabra de la frase.
// Convierte el primer caracter en mayusculas y el resto de la
// palabra en minusculas.
callback = function(txt){
// Tomamos el primer caracter (0) pero como mayusculas.
return txt.charAt(0).toUpperCase()
// Le agregamos el resto del string (substring(1)) en minusc.
+ txt.substr(1).toLowerCase();
#include <stdio.h>
#include <stdlib.h>
typedef struct snodo {
int valor;
struct snodo *sig;
} tnodo;
typedef tnodo *tpuntero;
#include <stdio.h>
#include <ctype.h>
int main() {
FILE *arch;
// inicializar el primero en 0 hace
// que se inicialice el resto en 0 tambien
int i,v[26]={0};
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"AlignTab",
"All Autocomplete",
"Aurora Color Scheme",
function LongestWord(sen) {
if (typeof LongestWord.cache === 'undefined') {
LongestWord.cache = [];
} else {
if (LongestWord.cache.hasOwnProperty(sen)) {
return LongestWord.cache[sen];
}
}
LongestWord.cache[sen] = sen
.match(/[\w]+/g)
@innerspirit
innerspirit / css_resources.md
Last active August 29, 2015 14:18 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@innerspirit
innerspirit / python_resources.md
Last active August 29, 2015 14:18 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@innerspirit
innerspirit / javascript_resources.md
Last active August 29, 2015 14:18 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage