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 node | |
"use strict"; | |
var path = require('path'); | |
var execSync = require('child_process').execSync; | |
var hook = path.basename(__filename); | |
var config = require(path.resolve(process.cwd(), 'package')); | |
if (!config[hook]) { | |
process.exit(0); | |
} |
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 winston = require('winston'); | |
module.exports = function (module) { | |
return makeLogger(module.filename); | |
}; | |
function makeLogger(path) { | |
// File app.js -> log to console and file 'debug.log'. | |
if (path.match(/app.js$/)) { | |
var transports = [ |
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 gulp = require('gulp'); | |
var nodemon = require('gulp-nodemon'); | |
var livereload = require('gulp-livereload'); | |
gulp.task('default', function () { | |
livereload.listen(); | |
nodemon({ | |
// Main script. | |
script: 'app.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
" Settings | |
let blacklists = ["https://trello.com/*","http://www.codewars.com/*"] | |
set noautofocus | |
" Mappings | |
map о j | |
map л k |
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 "testsrunner.h" | |
int main(int argc, char* argv[]) | |
{ | |
return RUN_ALL_TESTS(argc, argv); | |
} |
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 <windows.h> | |
#include <iostream> | |
#include <string> | |
#include <regex> | |
enum Color | |
{ | |
blue = 1, green, cyan, red, purple, yellow, grey, dgrey, hblue, hgreen, hcyan, hred, hpurple, hyellow, hwhite | |
}; |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Unknown\shell] | |
@="sublime" | |
[HKEY_CLASSES_ROOT\Unknown\shell\gvim] | |
@="Open with gvim" | |
[HKEY_CLASSES_ROOT\Unknown\shell\gvim\command] | |
@="C:\\Program Files (x86)\\Vim\\vim74\\gvim.exe %1" |
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 <gtest/gtest.h> | |
int main(int argc, char* argv[]) | |
{ | |
testing::InitGoogleTest(&argc, argv); | |
return RUN_ALL_TESTS(); | |
} |
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
REM http://pempek.net/articles/2015/10/18/compiling-qt-5-5-1-with-visual-studio-2015/ | |
REM Set up \Microsoft Visual Studio 2015 | |
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 | |
ECHO ON | |
SET _CD=%CD% | |
SET _PATH=%PATH% | |
SET ICU_SOURCE=%_CD%\tools\icu-54.1\source | |
SET ICU_DIST=%_CD%\tools\icu-54.1\dist-64 |
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
#ifndef DBG_H | |
#define DBG_H | |
#include <stdio.h> | |
#include <errno.h> | |
#include <string.h> | |
#ifdef NDEBUG | |
# define DEBUG(M, ...) | |
#else |
OlderNewer