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
# Reset / delete problematic node_modules | |
npx react-native start --reset-cache | |
npx react-native run-android |
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
variable "aws_region" { | |
default = "eu-west-1" | |
} | |
variable "domain" { | |
default = "my_domain" | |
} | |
provider "aws" { | |
region = "${var.aws_region}" |
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
set smoothscroll | |
set noautofocus | |
let scrollstep = 150 | |
let barposition = "bottom" | |
map <space> : | |
map go scrollToTop | |
map > goForward | |
map < goBack |
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
package main | |
import ( | |
"log" | |
) | |
type node struct { | |
val int | |
leftChild *node | |
rightChild *node |
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
sudo apt-get remove --purge eclipse* | |
rm -rf ~/.eclipse | |
rm -rf ~/.config/eclipse | |
rm -rf <workspace_dir>/.metadata |
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
gulp.task('main', function () { | |
native_tsc_task(d_src, d_out, js_out) | |
}) | |
var spawn = require('child_process').spawn | |
function native_tsc_task(main_file, out_file, out_dir) { | |
var child = spawn('tsc', [main_file, '--out', out_dir + out_file, '--target', 'es5', '--noEmitOnError', '--sourceMap']) | |
var child_output = '' | |
child.stdout.on('data', function(data) { child_output += data.toString() } ) | |
child.stdout.on('end', function(data) { handle_tsc_output(main_file, child_output) } ) |
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
{ | |
//Restricting | |
"bitwise": true, | |
"curly": true, | |
"eqeqeq": true, | |
"immed": true, | |
"indent": 2, | |
"latedef": "func", | |
"newcap": true, | |
"noarg": true, |
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
function benchmark(args) { | |
var error_msg = [ | |
"Provide an object with at least a func keyword, example:", | |
"{func: function, thisarg: thisarg, times:times}", | |
"func must be an instanceof Function" | |
].join('\n'); | |
return function() { | |
if (!(args.func instanceof Function)) { | |
throw new Error(error_msg) |
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
# File /var/www/wsgi_app/app.py | |
# The Flask application | |
#!/usr/bin/env python | |
from flask import Flask | |
app = Flask(__name__) |
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 gulp = require('gulp') | |
var source = require('vinyl-source-stream') | |
var buffer = require('vinyl-buffer') | |
var browserify = require('browserify') | |
var esnext = require('gulp-esnext') | |
var notify = require('gulp-notify') | |
var build_dir = './bin' | |
var browserify_input = './main.js' |
NewerOlder