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
// reference: https://gist.github.com/msmshazan/dfd5362004be37ff5e016b6a42be5083 | |
package d3d11_triangle | |
import "core:strings" | |
import "core:runtime" | |
import "core:fmt" | |
import "core:sys/windows" | |
import d3d11 "vendor:directx/d3d11" | |
import dxgi "vendor:directx/dxgi" | |
import d3dc "vendor:directx/d3d_compiler" |
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
call plug#begin() | |
Plug 'drewtempelmeyer/palenight.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'wlangstroth/vim-racket' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'rust-lang/rust.vim' | |
Plug 'preservim/tagbar' | |
Plug 'universal-ctags/ctags' | |
Plug 'luochen1990/rainbow' | |
Plug 'vim-syntastic/syntastic' |
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
#!/bin/bash | |
set -e | |
CURRENT_NAME="CurrentName" | |
CURRENT_OTP="current_name" | |
NEW_NAME="NewName" | |
NEW_OTP="new_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
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
NativeModules, | |
TouchableHighlight, |
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
/* | |
* Steps | |
* 1. Rename your gulpfile.js to gulpfile.babel.js | |
* 2. Add babel to your package.json (npm install -D babel) | |
* 3. Start writing ES6 in your gulpfile! | |
*/ | |
import gulp from 'gulp'; // ES6 imports! | |
import sass from 'gulp-sass'; | |
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
#!/bin/bash | |
# Converts an image in a multi-resolution favicon | |
# Requires Imagemagick | |
if [[ "$#" != "2" ]]; then | |
echo "Usage: $0 input.png output.ico" >&2 | |
exit 1 | |
fi | |
input="$1" |
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
// Common modules | |
var util = require('util'); | |
var events = require('events'); | |
var http = require('http'); | |
var url = require('url'); | |
var fs = require('fs'); | |
var zlib = require('zlib'); | |
// Simple HTTP server | |
var s = http.createServer(function (request, response) { |
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
class Module | |
def dispatch(*klasses, last) | |
last_klass, mid = last.first | |
klasses << last_klass | |
__dispatch_list << [klasses, instance_method(mid)] | |
define_method(mid, __dispatch_proc(__dispatch_list)) | |
end | |
def __dispatch_list | |
@__dispatch_list ||= [] |
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
# Include dependencies declared by lenskit-package to ensure we load all lenskit JAR files | |
# Reference: http://mvnrepository.com/artifact/org.grouplens.lenskit/lenskit-package/2.0 | |
jar 'org.grouplens.lenskit:lenskit-core' | |
jar 'org.grouplens.lenskit:lenskit-eval' | |
jar 'org.grouplens.lenskit:lenskit-knn' | |
jar 'org.grouplens.lenskit:lenskit-slopeone' | |
jar 'org.grouplens.lenskit:lenskit-svd' |