This file contains hidden or 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
#!/usr/bin/env bash | |
send_mixpanel_event() { | |
local token="<TOKEN>" | |
local distinct_id="<DISTINCT-ID>" | |
local time_now=$(date +%s) | |
local event | |
read -d '' event <<-EOF | |
{ | |
"event": "Install", |
This file contains hidden or 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
{ | |
"title": "Home row cursor", | |
"rules": [ | |
{ | |
"description": "Change fn + H/J/K/L to Arrow Keys", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "h", |
This file contains hidden or 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
local NUM_OF_THREADS=$(sysctl hw.ncpu | awk '{print $2}') | |
local MAKEOPTS="${MAKEOPTS:-} -j${NUM_OF_THREADS}" | |
make $MAKEOPTS clean |
This file contains hidden or 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
#!/bin/bash | |
#DEST_DIRS=("" "") | |
if [[ -z ${DEST_DIRS[*]+_} ]]; then | |
DEST_DIRS=( | |
"dir1" | |
"dir2" | |
) | |
fi |
This file contains hidden or 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
# rm -rf * will treat -i as an option and ask for deletion | |
find . -maxdepth 1 -type d -iname "*" -exec touch {}/-i \; -exec chflags hidden {}/-i \; |
This file contains hidden or 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
!exists($$OUT_PWD/conanbuildinfo.pri) { | |
error("No conanbuildinfo.pri file found") | |
} | |
TEMPLATE = app | |
CONFIG -= app_bundle | |
#CONFIG -= qt | |
CONFIG += qt |
This file contains hidden or 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
from conans import ConanFile, tools | |
import os | |
class MyaccountTestConan(ConanFile): | |
settings = "os", "compiler", "build_type", "arch", "os_build", "arch_build" | |
generators = "qmake" | |
exports="*" | |
def build(self): | |
self.run('echo %s' % os.environ["QT_ROOT"]) |
This file contains hidden or 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
import textwrap | |
print(textwrap.indent(repr(output_var), " " * 4)) |
This file contains hidden or 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
set smoothscroll | |
let scrollstep = 70 | |
let scrollduration = 25 | |
let hintcharacters = "sadfjklewcmpgh" | |
" let mapleader = "space" | |
map "space" "<Leader>" | |
map "e" toggleReader | |
" unmap "space" | |
" unmap "shift+," |