Skip to content

Instantly share code, notes, and snippets.

View bvanhou's full-sized avatar

Benjamin Van Houten bvanhou

View GitHub Profile
@vuon9
vuon9 / README.md
Last active January 18, 2026 21:55
Powertoys - Keyboard Manager - Common macOS keys mapping

How to install

  • cd C:\Users\${username}\AppData\Local\Microsoft\PowerToys\Keyboard Manager
  • Backup file existing one of default.json
  • Download default.json and add it to the current folder

Mapped keys

key
Esc
@codediodeio
codediodeio / auth.service.ts
Created May 8, 2017 16:41
Angular4 Firebase authentication service using OAuth, Anonymous, and Email/Password. Designed specifically for changes introduced in AngularFire2 4.0.0
import { Injectable } from '@angular/core';
import { AngularFireDatabaseModule, AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';
import { AngularFireAuth } from 'angularfire2/auth';
import { Router } from "@angular/router";
import * as firebase from 'firebase';
@Injectable()
export class AuthService {
var method = {};
var parameters = {
short: 12,
long: 26,
signal: 9,
down: -0.001,
up: 0.001,
persistence: 1
};
@Pedro942
Pedro942 / strat.js
Created May 4, 2017 11:41
Start.JS
// Let's create our own strategy
var strat = {};
// Prepare everything our strat needs
strat.init = function() {
// start of with no investment
this.currentTrend = 'short';
// your code!
// add a native MACD
var parameters = {short: 12, long: 26, signal: 9,down = -0.0001,
@ascendbruce
ascendbruce / README.md
Last active February 22, 2026 15:40
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work

@ryanfitz
ryanfitz / golang-nuts.go
Created December 2, 2012 22:45
two ways to call a function every 2 seconds
package main
import (
"fmt"
"time"
)
// Suggestions from golang-nuts
// http://play.golang.org/p/Ctg3_AQisl