Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

fpath=( "$HOME/.zfunctions" $fpath )
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/alechp/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@alechp
alechp / repo-genesis-cli.txt
Last active February 22, 2018 21:05
repogen dry run
npm install -g repo-genesis-cli
git clone https://github.com/servexyz/starter
cd starter
repogen .repogen.js
@alechp
alechp / cVimrc
Last active June 13, 2018 01:51
configuration for cVim
let blacklists = ["https://www.youtube.com/*"]
@alechp
alechp / lafcli.js
Created March 29, 2019 17:07
lafcli
import React from "react";
import { render, Box, Text } from "ink";
import TextInput from "ink-text-input";
import SelectInput from "ink-select-input";
import fs from "fs-extra";
import clipboardy from "clipboardy";
const log = console.log;
import * as laf from "lingo-asset-fetcher-lib";
import config from "./index.config";
@alechp
alechp / gist:06a18d983af1a5abe50b72a5545d8372
Created June 26, 2019 17:12
Dom Dump - Caprine's Dev Tools
<html lang="🙂" id="facebook" class="os-darwin sidebar-hidden sidebar-vibrancy _51l0 is-window-inactive"><head><meta charset="🙂"><meta name="🙂" content="🙂" id="🙂"><script>// 🙂</script><script>// 🙂</script><style></style><script>// 🙂</script><noscript>🙂</noscript><title id="🙂">🙂</title><link color="🙂" href="🙂" rel="🙂"><link rel="🙂" href="🙂"><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yv/l/0,cross/o53dPCeUylj.css" data-bootloader-hash="tIhyf" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yV/l/0,cross/BOltXXnxOjQ.css" data-bootloader-hash="6Vx9a" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yt/l/0,cross/n6ghgSaVM4-.css" data-bootloader-hash="I4ggE" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yv/l/0,cross/LcM4Np-piOe.css" data-bootloader-hash="Qs5WV" crossorigin="anonymous">
<script
<html lang="🙂" id="facebook" class="os-darwin sidebar-hidden _51l0 dark-mode sidebar-vibrancy is-window-inactive"><head><meta charset="🙂"><meta name="🙂" content="🙂" id="🙂"><script>// 🙂</script><script>// 🙂</script><style></style><script>// 🙂</script><noscript>🙂</noscript><title id="🙂">🙂</title><link color="🙂" href="🙂" rel="🙂"><link rel="🙂" href="🙂"><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yv/l/0,cross/o53dPCeUylj.css" data-bootloader-hash="tIhyf" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yV/l/0,cross/BOltXXnxOjQ.css" data-bootloader-hash="6Vx9a" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yt/l/0,cross/n6ghgSaVM4-.css" data-bootloader-hash="I4ggE" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yv/l/0,cross/LcM4Np-piOe.css" data-bootloader-hash="Qs5WV" crossorigin="anonymous
<html lang="🙂" id="facebook" class="os-darwin sidebar-hidden _51l0 sidebar-vibrancy is-window-inactive"><head><meta charset="🙂"><meta name="🙂" content="🙂" id="🙂"><script>// 🙂</script><script>// 🙂</script><style></style><script>// 🙂</script><noscript>🙂</noscript><title id="🙂">🙂</title><link color="🙂" href="🙂" rel="🙂"><link rel="🙂" href="🙂"><link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yv/l/0,cross/o53dPCeUylj.css" data-bootloader-hash="tIhyf" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yV/l/0,cross/BOltXXnxOjQ.css" data-bootloader-hash="6Vx9a" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yt/l/0,cross/n6ghgSaVM4-.css" data-bootloader-hash="I4ggE" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://static.xx.fbcdn.net/rsrc.php/v3/yv/l/0,cross/LcM4Np-piOe.css" data-bootloader-hash="Qs5WV" crossorigin="anonymous">
<script
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();