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/sh -e | |
if [ $# -eq 0 ]; then | |
echo "usage: $0 <repo> [<repo> ...]" | |
exit 1 | |
fi | |
repos=$@ | |
makePrivateAndArchiveRepo () { |
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
module.exports = { | |
chainWebpack: config => { | |
config.plugin('friendly-errors') | |
.tap(args => { | |
args[0].onErrors = (severity, errors) => { | |
// if (severity !== 'error') { | |
// return; | |
// } | |
for (const error of errors) { | |
console.error(error.webpackError) |
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
{ | |
mode: 'development', | |
context: '/Users/tony/src/tmp/snirp-vue-web-component', | |
devtool: 'cheap-module-eval-source-map', | |
node: { | |
setImmediate: false, | |
process: 'mock', | |
dgram: 'empty', | |
fs: 'empty', | |
net: 'empty', |
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
const {startServer} = require('polyserve'); | |
const projectConfig = require('./polymer.json'); | |
const serverOptions = { | |
compile: projectConfig.compile, | |
entryPoint: projectConfig.entryPoint, | |
port: 8080, | |
root: 'src', | |
}; |
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 flask import Flask, request, jsonify | |
app = Flask(__name__) | |
@app.route('/api/test') | |
def test(): | |
return jsonify(entries=request.args.getlist('entry')) | |
if __name__ == '__main__': | |
app.run() |
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 -e | |
# This uses git-filter-branch to prepend a given string to each commit summary. | |
prefix=:smiley: | |
ref1=HEAD~2 | |
ref2=HEAD | |
git filter-branch -f --msg-filter 'stdin=$(cat) && echo "$prefix $stdin"' $ref1..$ref2 |
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
"*": | |
"atom-css-comb": | |
commonConfigs: "/Users/tony/.csscomb.json" | |
readyMadeConfigs: "csscomb" | |
"atom-csscomb": | |
configureWithJSON: true | |
"atom-ctags": {} | |
"color-picker": | |
randomColor: false | |
core: |
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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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 -eu | |
################################################################################ | |
# | |
# Copyright (c) 2014 Anthony Trinh. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to | |
# deal in the Software without restriction, including without limitation the | |
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
# sell copies of the Software, and to permit persons to whom the Software is |
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/sh | |
# Ubuntu 11.10 currently comes with Git 1.7.2. If you want to install | |
# the latest dev build of Git, follow these steps. One feature I really | |
# needed from this is the ability to stash unstaged *and untracked* | |
# changes. (Current version only stashes unstaged changes) | |
sudo apt-get install libssl-dev libcurl4-gnutls-dev libexpat1-dev | |
git clone git://git.kernel.org/pub/scm/git/git.git | |
git tag |