This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator] | |
"EnableURL"=dword:00000001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 | |
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# coffeescript.py - sublimelint package for checking coffee files | |
import re | |
import subprocess | |
import itertools | |
from base_linter import BaseLinter | |
CONFIG = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Lazy<T> | |
{ | |
private Func<T> factory; | |
private object objectLock = new Object(); | |
private T lazyValue; | |
public Lazy(Func<T> factory) | |
{ | |
this.factory = factory; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextWindow.ForegroundColor = "Cyan" | |
TextWindow.WriteLine("Ponga su nombre: ") | |
nombre = TextWindow.Read() | |
TextWindow.WriteLine("hola " + nombre) | |
TextWindow.WriteLine("Ponga su edad: ") | |
edad = TextWindow.ReadNumber() |