THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # Generates necessary certificates to ~/.docker | |
| # | |
| # Usage: | |
| # bundle install | |
| # ruby certgen.rb <domain> | |
| require 'certificate_authority' | |
| require 'fileutils' | |
| if ARGV.empty? |
| // 4 spaces to 2 spaces | |
| %s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g | |
| // Tab to 2 spaces | |
| :%s/\t/ /g |
| extern crate cgmath; | |
| use self::cgmath::Matrix4; | |
| use scene::MeshComponent; | |
| macro_rules! scene( | |
| ($($comp_name:ident($comp_adder:ident, $comp_getter:ident, $comp_remover:ident, $comp_foreach:ident): $comp:ident),*) => ( | |
| pub struct Scene { | |
| transforms: Vec<Option<Matrix4<f32>>>, |
| #!/usr/bin/env bash | |
| # Browse Ramda documentation in Terminal | |
| # Requires jq and a tool such as fzf or peco for interactive filtering | |
| LATEST="http://raine.github.io/ramda-json-docs/latest.json" | |
| DOCS_URL="http://ramdajs.com/docs/" | |
| json=$(curl -s $LATEST) | |
| functions=$(echo "$json" | jq -r '.[] | if .sig and (.sig | length > 0) then .name + " :: " + .sig else .name end') |
| //Some fantasy implementations | |
| const Just = require('./just') | |
| const Cant = require('./cant') | |
| const List = require('./list') | |
| //Spec file that defines what arguments are used for type identification | |
| const fantasy = require('./fantasy') | |
| //The magic. | |
| const {chain, map, index} = require('../../src/xface')(fantasy, [Just, Cant]) |
| set nocompatible " be iMproved, required | |
| set hidden | |
| filetype off " required | |
| " line numbers | |
| set number | |
| set relativenumber | |
| set backspace=2 "allow deleting any chars in insert mode | |
| set laststatus=2 | |
| set ruler " show the cursor position all the time |
For more up2date information: http://www.hellorust.com/emscripten/
Emscripten is the LLVM-based project to compile stuff into JavaScript. Luckily, Rust already uses LLVM and just recently got an upgrade to the used version of LLVM. Now emscripten uses a fork of LLVM, which is on the way to use more or less the same base LLVM as Rust. See the next-merge branch.