Skip to content

Instantly share code, notes, and snippets.

View emelent's full-sized avatar

Roy Motloutsi emelent

View GitHub Profile

Mac Report

The Good

- Great form factor.
- I actually like the keyboard, I find it pretty comfortable, I haven't experienced any hectic keyboard problems.
- Retina display is crisp... mmm, crispy chicken.
- Trackpad, pretty good trackpad.
@emelent
emelent / init.vim
Created August 15, 2019 07:51
My Vim Config
if 0 | endif
if &compatible
set nocompatible " Be iMproved
endif
filetype plugin indent on
syntax enable
set guifont=Monac:h12
syntax on
{
"name": "stringbean",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"reset": "npm start -- --reset-cache",
"prepare": "react-native bundle --dev false --platform android --entry-file index.android.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug",
"build": "npm run prepare && cd android && ./gradlew assembleDebug",
"push": "code-push release-react stringbean android",
{
"name": "stringbean",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"reset": "npm start -- --reset-cache",
"prepare": "react-native bundle --dev false --platform android --entry-file index.android.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug",
"build": "npm run prepare && cd android && ./gradlew assembleDebug",
"push": "code-push release-react stringbean android",
[user]
name = Roy Motloutsi
email = roy.motloutsi@gmail.com
[branch]
autosetuprebase = always
[color]
ui = true
status = auto
branch = auto
[core]
@emelent
emelent / teh-nvim-config
Last active September 9, 2019 20:25
nvim config
if 0 | endif
if &compatible
set nocompatible " Be iMproved
endif
filetype plugin indent on
syntax enable
set guifont=Monac:h12
syntax on
@emelent
emelent / teh-bashrc
Last active September 9, 2019 20:25
# Tell ls to be colourful
export CLICOLOR=1
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin:$HOME/bin:$HOME/bin/apache-maven-3.5.0/bin:$HOME/development/flutter/bin:$HOME/bin/apache-maven-3.6.1/bin:$HOME/bin/gatling-3.1.2/bin"
export GOPATH=$HOME/go
@emelent
emelent / SimpleIndexedDb.js
Last active October 9, 2017 18:38
Simple Promise based IndexedDb utilities with Example
/*
* Just promisified some indexedDb methods and put it together
* in a nice little js goodie.
*
* You can find the example at the bottom.
*/
//==========================
// HELPER FUNCS
const $ = function(){
class Container{
constructor(elements){
if(!(elements && elements.length)) return
this.elements = Array.from(elements)
for(let prop in elements[0]){
if(typeof elements[0][prop] === 'function'){
const elm = this.elements
this[prop] = function(){
return elm.map(
@emelent
emelent / .eslintrc.json
Created July 25, 2017 14:47
ReactJs ESLint config
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {