Skip to content

Instantly share code, notes, and snippets.

View gabriel's full-sized avatar

Gabriel Handford gabriel

View GitHub Profile
JavaScript, TypeScript, Angular, AngularJS, React, Vue.js, Svelte, Ember.js, Backbone.js, Knockout.js, Mithril, Riot.js, Aurelia, Stencil, Node.js, Express, NestJS, Koa, Hapi, LoopBack, Meteor, Next.js, Nuxt.js, Gatsby, Java, Spring, Spring Boot, Spring Cloud, Hibernate, JPA, JSF, Vaadin, GWT, Grails, Play Framework, Micronaut, Quarkus, Python, Django, Flask, FastAPI, Tornado, Pyramid, CherryPy, Bottle, Twisted, Falcon, Ruby on Rails, Sinatra, PHP, Laravel, Symfony, CodeIgniter, Zend Framework, CakePHP, Yii, FuelPHP, Slim, Phalcon, C#, .NET Framework, .NET Core, ASP.NET, Blazor, WPF, WinForms, Entity Framework, SignalR, Xamarin, C++, Qt, Boost, MFC, JUCE, wxWidgets, OpenFrameworks, Unreal Engine, Go, Gin, Echo, Revel, Buffalo, Fiber, Goji, Rust, Actix, Rocket, Tonic, Axum, Scala, Play, Akka, Lift, Kotlin, Ktor, Kotlin/JS, Kotlin/Native, Swift, Vapor, Perfect, Kitura, Objective-C, Clojure, Luminus, Pedestal, Ring, Haskell, Snap, Yesod, Servant, Elm, Purescript, ReScript, F#, Suave, Giraffe, Elmish, Erlang, Eli
➜ ~/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
package main

import (
	"fmt"

	"github.com/aquilax/tripcode"
)

func main() {
// 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,
require 'net/http'
require 'json'
require 'csv'
# Put access token
AccessToken = ""
RequestDelay = 1 # in seconds
def messages(group_id, group_name)
limit = 100
@gabriel
gabriel / git-prompt.sh
Created July 14, 2016 01:43
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).
@gabriel
gabriel / setup.md
Last active July 28, 2023 16:46
Setup

Prompt

  • Install oh-my-zsh

Alias git commands

git config --global alias.st status 

System Prefs

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 June 23, 2016 19:46
Alternative Vendoring Strategy

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

// These might be good globals
line1: {
overflow: 'hidden',
display: '-webkit-box',
textOverflow: 'ellipsis',
WebkitLineClamp: 1,
WebkitBoxOrient: 'vertical'
},
line2: {
overflow: 'hidden',