This file contains 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 re | |
from base_linter import BaseLinter | |
CONFIG = { | |
'language': 'SCSS', | |
'executable': 'scss-lint.sh', | |
'lint_args': '{filename}' | |
} |
This file contains 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
// ahora | |
diccionarios = [channel_][territory_]language | |
templates = [channel_][territory_]language | |
configuraciones = [channel_]territory[_language] | |
// propuesta | |
The locale naming convention is: | |
language[_territory][.codeset][@modifier] | |
where a two-letter language code is from ISO 639, a two-letter territory code is | |
from ISO 3166, codeset is the name of the codeset that is being used in the |
This file contains 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
express = require 'express' | |
skipper = require 'skipper' | |
nodemailer = require 'nodemailer' | |
app = express() | |
verifyToken = (req, res, next) -> | |
token = req.body.token || req.query.token || req.headers['x-access-token'] | |
if token is process.env.TOKEN | |
next() | |
else |
This file contains 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
#!/usr/bin/env ruby | |
# coding: UTF-8 | |
require "./db2jcc4.jar" | |
require "./db2jcc_license_cu.jar" | |
query = <<-eos | |
select 'hello' as foo, 'world' as bar | |
from sysibm.sysdummy1 | |
eos |
This file contains 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
#!/usr/bin/env ruby | |
# coding: UTF-8 | |
require "logger" | |
require "pp" | |
require "yaml" | |
require "active_support/inflector" | |
logger = Logger.new $stderr | |
logger.level = Logger.const_get ENV.fetch "LOG_LEVEL", "INFO" |
This file contains 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 express from "express" | |
var app = express(); | |
app.get("/", (req, res) => { | |
res.json({hello: 'world'}); | |
}); | |
var port = process.env.PORT || 3000; |
This file contains 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
board = """ | |
........................o........... | |
......................o.o........... | |
............oo......oo............oo | |
...........o...o....oo............oo | |
oo........o.....o...oo.............. | |
oo........o...o.oo....o.o........... | |
..........o.....o.......o........... | |
...........o...o.................... | |
............oo...................... |
This file contains 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
user:realm:fb6cb9e166c6c764ff2bdea12175a8aa |
This file contains 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
#!/usr/bin/env coffee | |
os = require 'os' | |
chokidar = require './nosync/node_modules/chokidar' | |
spawn = require('child_process').spawn | |
watcher = null | |
debounce = (fn, delay=100) -> | |
timer = null | |
-> | |
context = this |
This file contains 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
# Meassure the difference: | |
# $ ab -r -n 10 http://127.0.0.1:4567/ | grep "Requests per second" | |
require 'sinatra' | |
require 'logger' | |
ERRLOG = Logger.new "#{__FILE__}.err" | |
ERRQ = Queue.new | |
Thread.new do | |
loop do |