Skip to content

Instantly share code, notes, and snippets.

View heypoom's full-sized avatar
🏠
Working from home

Phoomparin Mano heypoom

🏠
Working from home
View GitHub Profile
'use strict';
var blacklist = require('./node_modules/react-native/packager/blacklist');
var path = require('path');
/**
* Default configuration for the CLI.
*
* If you need to override any of this functions do so by defining the file
@heypoom
heypoom / RNfontWeights.js
Created December 13, 2017 07:25 — forked from knowbody/RNfontWeights.js
React Native Font Weight Cheatsheet iOS
{ fontWeight: '100' }, // Thin
{ fontWeight: '200' }, // Ultra Light
{ fontWeight: '300' }, // Light
{ fontWeight: '400' }, // Regular
{ fontWeight: '500' }, // Medium
{ fontWeight: '600' }, // Semibold
{ fontWeight: '700' }, // Bold
{ fontWeight: '800' }, // Heavy
{ fontWeight: '900' }, // Black
@heypoom
heypoom / spectre.c
Created January 7, 2018 09:24 — forked from Badel2/spectre.c
Spectre attack example implementation
/* https://spectreattack.com/spectre.pdf */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@heypoom
heypoom / build.gradle
Created January 15, 2018 08:04 — forked from chris-martin/build.gradle
Method for launching a Scala REPL for a Gradle project.
task classpath << { println sourceSets.main.runtimeClasspath.asPath }

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: