Skip to content

Instantly share code, notes, and snippets.

View lasersox's full-sized avatar

AJ Ross lasersox

View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## changelog
# Original version by Alex Ross
# patch to validate html, fix hex parsing, and check PIL version by micheal -- 10/16/2007
"""gen_imgmap.py
Usage: gen_imgmap.py [-hi] image_file csv_file out_file
@lasersox
lasersox / config.yml
Last active February 6, 2020 15:47
Automatically delete stale AppEngine versions with CircleCI
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
cleanup-stale-qa-versions:
docker:
- image: google/cloud-sdk
working_directory: ~/repo/app
@lasersox
lasersox / .stylelintrc
Last active February 4, 2020 14:56
Example Stylelint Config
{
"processors": ["stylelint-processor-styled-components"],
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
],
"rules": {
"no-descending-specificity": null
}
}
@lasersox
lasersox / tsconfig.json
Created February 4, 2020 14:54
TSConfig Example
{
"compilerOptions": {
"target": "es5",
"sourceMap": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
@lasersox
lasersox / tsconfig.json
Created February 4, 2020 14:54
TSConfig Example
{
"compilerOptions": {
"target": "es5",
"sourceMap": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
@lasersox
lasersox / eslint.rc.js
Created February 4, 2020 14:46
Typescript ESLint Rules
module.exports = {
env: {
browser: true,
es6: true,
jest: true
},
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:react/recommended',
@lasersox
lasersox / config.yaml
Created January 23, 2020 16:07
Example for cleaning up stale versions of an AppEngine project.
cleanup-stale-versions:
docker:
- image: google/cloud-sdk
working_directory: ~/repo/app
steps:
- run:
command: |
set +e
echo $GCLOUD_SERVICE_KEY | base64 -d > ${HOME}/gcloud-service-key.json
gcloud auth activate-service-account --key-file=${HOME}/gcloud-service-key.json
### Keybase proof
I hereby claim:
* I am lasersox on github.
* I am lasersox (https://keybase.io/lasersox) on keybase.
* I have a public key ASAxFDPNuYwVFLuq0rn35Jgzo77Xfh86lfq9DLs39nIaJwo
To claim this, I am signing this object:
@lasersox
lasersox / gist:311646
Created February 22, 2010 23:16 — forked from Phrogz/gist:311640
#Works (foo is not included)
:markdown
Hello
World
%foo
#Fails (foo is included)
:markdown
Hello