CapsLock is RCTRL ... i do this on all keyboards
FN CapsLock is RCTRL ... was accidently toggling capslock with fn+capslock
LCTRL is FN ... arrow/pg/home on right half, FN+arrow I now prefer on ALL keyboards... so nice
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 <GLFW/glfw3.h> | |
#include <yoga/Yoga.h> | |
#include <stdlib.h> | |
int main(void) | |
{ | |
GLFWwindow* window; | |
/* Initialize the library */ | |
if (!glfwInit()) |
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
## Install NGINX | |
## when installing on Amazon Linux AMI, use: | |
$ sudo yum install nginx -y | |
## when installing on Amazon Linux 2 AMI, use | |
$ sudo amazon-linux-extras install nginx1.12 -y | |
## Install PHP and PHP-FPM | |
# for PHP version 7.1 use php71 and php71-fpm instead | |
$ sudo yum install php -y | |
$ sudo yum install php-fpm -y |
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
syntax where = function(ctx) { | |
const binaryOps = ["or", "and", "==", ">", "<", "-", "+", "*", "/", "."]; | |
const dummy = #`dummy`.get(0); | |
function matchNext(names) { | |
const marker = ctx.mark(); | |
const next = ctx.next(); | |
ctx.reset(marker); | |
return !next.done && names.includes(next.value.val()); | |
} |
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
function blockEnter(evt) {return true;} | |
function validarNoUsarTecladoReal_OnKeyPress(_object){return false;} |
With the release of Node 6.0.0, the surface of code that needs transpilation to use ES6 features has been reduced very dramatically.
This is what my current workflow looks like to set up a minimalistic and fast microservice using micro and async
+ await
.
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 Bot = require('node-telegram-bot-api') | |
var watson = require('watson-developer-cloud'); | |
var request = require('request'); | |
var config = require('./config'); | |
var speech_to_text = watson.speech_to_text({ | |
username: config.watson.username, | |
password: config.watson.password, | |
version: 'v1', | |
url: 'https://stream.watsonplatform.net/speech-to-text/api' |
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
# Install QEMU OSX port with ARM support | |
sudo port install qemu +target_arm | |
export QEMU=$(which qemu-system-arm) | |
# Dowload kernel and export location | |
curl -OL \ | |
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
# Download filesystem and export location |
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
THREE.TransformationShader = { | |
defines: {}, | |
uniforms: { | |
"tDiffuse": { type: "t", value: texture }, | |
"opacity": { type: "f", value: 1.0 }, | |
"translationX": { type: "f", value: 1.0 }, | |
"translationY": { type: "f", value: 1.0 }, | |
"translationZ": { type: "f", value: 1.0 }, | |
"scaleX": { type: "f", value: 1.0 }, |
NewerOlder