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
DEPLOYER='deployer' | |
DEPLOYER_HOME="/home/$DEPLOYER" | |
PROJECT_NAME='node-js-sample' | |
PROJECT_REPO='https://github.com/heroku/node-js-sample.git' | |
# Provisining an ubuntu server | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install software-properties-common | |
add-apt-repository ppa:chris-lea/node.js |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Mental mapping code smell</title> | |
<style> | |
.language-flag { | |
float: left; | |
} | |
</style> |
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
#!/bin/sh | |
# Must be called with two command-line args. | |
# Example: git-svn-relocate.sh http://old.server https://new.server | |
if [ $# -ne 2 ] | |
then | |
echo "Please invoke this script with two command-line arguments (old and new SVN URLs)." | |
exit $E_NO_ARGS | |
fi | |
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
#include "opencv2/highgui/highgui.hpp" | |
#include "opencv2/imgproc/imgproc.hpp" | |
#include <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <stdio.h> | |
#include <stdlib.h> | |
using namespace cv; | |
using namespace std; |
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
var step = 0; | |
async.waterfall([ | |
function (next){ | |
step = 1; | |
getJson('/country', function(data) { next(null, data); }); | |
}, | |
function (country, next){ | |
step = 2; | |
getJson('/weather', function(data) { next(null, country, data); }); |