Skip to content

Instantly share code, notes, and snippets.

Alex aethant

  • Chicago, USA
Block or report user

Report or block aethant

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aethant
aethant / index.js
Created Feb 11, 2017 — forked from TylerK/index.js
React Router 4, React -> Preact for production, Async route-based code-splitting.
View index.js
import React from 'react'
import { render } from 'react-dom';
import { Router, Route } from 'react-router-dom';
import LazyRoute from 'lazy-route';
const App = () => {
render() {
return (
<Router>
<Route
@aethant
aethant / shallowify.js
Last active Dec 29, 2016
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. Your solution should be a link to a gist on gist.github.com with your implementation. When writing this code, you can use any language you're comfortable with. The code must be well tested and docum…
View shallowify.js
const a = [ 23, 3, [ 5, 12, ], 11, ]
const b = [ [23, [233, 9, ], 11, ], 13, ]
const c = [ [ [ 222, 34, 55, 1, 7, ], 9, 1500, ], ]
const shallowify = arr => {
let results = []
arr.forEach(arrEl => {
if (arrEl.constructor === Array) {
results = [...results, ...shallowify(arrEl), ]
} else {
View keybase.md

Keybase proof

I hereby claim:

  • I am aethant on github.
  • I am atelischak (https://keybase.io/atelischak) on keybase.
  • I have a public key ASA6RcQgtJW9VumgfIw7MR54FwRAArlIT4lbWbnehs4N-Qo

To claim this, I am signing this object:

View Dockerfile.dev
FROM node:6.1
RUN groupadd -r application && useradd -r -g application application
ENV HOME=/home/application
COPY package.json $HOME/mc/
RUN chown -R application:application $HOME/* && chown -R application:application $HOME/*
RUN /bin/su application
@aethant
aethant / build-zip-from-s3.php
Created May 25, 2016 — forked from jeremeamia/build-zip-from-s3.php
Create a zip from objects from S3.
View build-zip-from-s3.php
<?php
// These are just the basics for how to do this. Notes:
// - Not fully tested.
// - Not suitable for production.
// - May not work well if large ammounts of data.
// - Requires AWS SDK for PHP and http://php.net/manual/en/book.zip.php
require '/path/to/sdk-or-autoloader';
@aethant
aethant / google-form-to-github-issue.md
Created Apr 6, 2016 — forked from bmcbride/google-form-to-github-issue.md
Create a new GitHub Issue from a Google Form submission
View google-form-to-github-issue.md

Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...

Set up your GitHub Personal Access Token

Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.

Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.

Set up the Form & Spreadsheet

  1. Create a Google Form.
View README.md

Redux Chaos Monkey

This is a proof of concept which allows you to replay system events in a random order each time to make sure your UI can tolerate variable states.

I'm not sure if this is worthy of its on open source project with additional features like changing play back time, whitelisting/blacklisting actions etc but figured I'd put this out there to see if it piques anyones interest.

See a video of this in action here: [https://www.youtube.com/watch?v=wkoukONfwmA](Video on YouTube).

View macsetup.sh
#!/bin/bash
echo "Install brew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask
echo ""
echo "Install apps"
brew cask install --appdir="/Applications" java google-chrome skype vagrant phpstorm firefox radiant-player mysqlworkbench sequel-pro textwrangler
brew cask install --appdir="/Applications" libreoffice slack dropbox imageoptim tunnelblick virtualbox virtualbox-extension-pack the-unarchiver
brew cask install --appdir="/Applications" ccleaner android-studio purevpn cyberduck ccleaner calibre coconutbattery flash-player
brew cask install --appdir="/Applications" spectacle vlc kodi xquartz inkscape launchrocket ngrok transmission gog-galaxy origin steam
@aethant
aethant / SassMeister-input-HTML.haml
Created Jul 24, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.haml
%html
%head
%body
.mailwrapper
.header
.logoside
%img{:src=>'https://www.burdiclothing.com/images/mail/crest-abbrev-red.png',:class=>'burdilogoimage'}
.detailside
.details
.detailsorder
@aethant
aethant / SassMeister-input-HTML.haml
Created Jul 24, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.haml
%html
%head
%body
.mailwrapper
.header
.logoside
%img{:src=>'https://www.burdiclothing.com/images/mail/crest-abbrev-red.png',:class=>'burdilogoimage'}
.detailside
.details
.detailsorder
You can’t perform that action at this time.