Skip to content

Instantly share code, notes, and snippets.

View jfromaniello's full-sized avatar
😀
coding

José F. Romaniello jfromaniello

😀
coding
View GitHub Profile
var openDb = require("../db"),
bcrypt = require('bcrypt');
module.exports = function(user, callback) {
user.availablePoints = 10;
openDb()
.collection('users')
.findOne({login: user.login}, function(err, userFromDb){
if(userFromDb){
The HTTP request to 'https://management.core.windows.net/fooBarBazLasLoz/services/hostedservices/xyz' has exceeded the allotted timeout of 00:00:00. The time allotted to this operation may have been a portion of a longer timeout.
@jfromaniello
jfromaniello / enablelinks.reg
Created January 9, 2012 20:02
Enable links in Communicator
## This is a fork of Joel Bennett's Growl for Powershell,
## http://huddledmasses.org/more-growl-for-windows-from-powershell/
## I did some changes to work with newer versions of Growl... as well as I make it easy to install with one line.
## This is the first version of a Growl module (just dot-source to use in PowerShell 1.0)
## v 1.0 supports a very simple notice, and no callbacks
## v 2.0 supports registering multiple message types
## supports callbacks
## v 2.1 redesigned to be a module used from apps, rather than it's own "PowerGrowler" app
##
@jfromaniello
jfromaniello / InsertUuidCommand.py
Created December 1, 2011 13:10
Sublime Text 2 plugging to insert an UUID at the carret position
import sublime_plugin
import uuid
class InsertUuidCommand(sublime_plugin.TextCommand):
def run(self, edit):
uuidToInsert = str(uuid.uuid4())
for r in self.view.sel():
self.view.insert(edit, r.begin(), uuidToInsert)
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="47" columns="107" buffer_rows="5000" buffer_columns="0" shell="" init_dir="" save_size="1" start_hidden="0">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
---
layout: default
meta-robots: "noodp, noydir, noindex, noarchive, follow"
---
<h1> Posts archive: {{ page.period["month"] }} - {{page.period["year"]}} </h1><br>
<ul>
{% for post in page.period_posts %}
<li>
<a href="{{post.url}}">{{ post.title }}</a><br>
# -*- coding: utf-8 -*-
# coffeescript.py - sublimelint package for checking coffee files
import re
import subprocess
import itertools
from base_linter import BaseLinter
CONFIG = {
public class Lazy<T>
{
private Func<T> factory;
private object objectLock = new Object();
private T lazyValue;
public Lazy(Func<T> factory)
{
this.factory = factory;
}
TextWindow.ForegroundColor = "Cyan"
TextWindow.WriteLine("Ponga su nombre: ")
nombre = TextWindow.Read()
TextWindow.WriteLine("hola " + nombre)
TextWindow.WriteLine("Ponga su edad: ")
edad = TextWindow.ReadNumber()