Skip to content

Instantly share code, notes, and snippets.

View gist:a82b942c88defe1825f6e5850168b9d0
➜ ~/Projects/electron-react-boilerplate (master) yarn start
yarn run v1.12.3
$ yarn build
$ concurrently "yarn build-main" "yarn build-renderer"
$ cross-env NODE_ENV=production webpack --config ./configs/webpack.config.main.prod.babel.js --colors
$ cross-env NODE_ENV=production webpack --config ./configs/webpack.config.renderer.prod.babel.js --colors
[0] Hash: 733a110763a28611c3cb
[0] Version: webpack 4.23.1
[0] Time: 2258ms
[0] Built at: 11/20/2018 11:37:01 AM
View tripcode.md
package main

import (
	"fmt"

	"github.com/aquilax/tripcode"
)

func main() {
View @material-ui--core_v1.x.x.js
// flow-typed signature: 03cf7c175358936fca986447e901a2fe
// flow-typed version: 81ddf4ba12/@@material-ui/core/core_v1.x.x/flow_>=v0.58.x
declare module "@material-ui/core/AppBar/AppBar" {
declare type Color = "inherit" | "primary" | "secondary" | "default";
declare type Position = "fixed" | "absolute" | "sticky" | "static";
declare module.exports: React$ComponentType<{
children?: React$Node,
className?: string,
View groupme.rb
require 'net/http'
require 'json'
require 'csv'
# Put access token
AccessToken = ""
RequestDelay = 1 # in seconds
def messages(group_id, group_name)
limit = 100
View git-prompt.sh
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
View setup.md
View rooter.md

Hi all,

If you want to test proving social network ownership with rooter, here's what you can do.

On the command line:

keybase prove rooter yourUserName

It will give you something to post, call it 'LcEI8-LuBRM1EUtXKf1jZAabCKtu0_rjaKVif1O3Bsc'

@gabriel
gabriel / vendor.md
Last active Jun 23, 2016
Alternative Vendoring Strategy
View vendor.md

Vendoring Somewhere Else?

Instead of vendoring inside client and kbfs (and including client in kbfs), we vendor at github.com/keybase/vendor (as a repo).

When a user wants to build:

  • go get github.com/keybase/client/go
  • go get github.com/keybase/kbfs
  • go get github.com/keybase/vendor (if they want to use vendoring)

An example vendoring repo that works right now is at: https://github.com/keybase/go-vendor-test

View gist:35c2670f4b0ba917c7d6
// These might be good globals
line1: {
overflow: 'hidden',
display: '-webkit-box',
textOverflow: 'ellipsis',
WebkitLineClamp: 1,
WebkitBoxOrient: 'vertical'
},
line2: {
overflow: 'hidden',
View environment.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>environment</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>