Skip to content

Instantly share code, notes, and snippets.


Chris Sanders astericky

View GitHub Profile
astericky / gist:5775128
Created Jun 13, 2013
I am trying to turn the commented out line into the whole body of the function. It seems a lot easier than what is here. I tried though and failed to get it to work properly. also note --->
View gist:5775128
public class ResumeRepository
private final Map<Integer, List<Resume>> resumes;
public ResumeRepository()
this.resumes = new HashMap<>();
public Resume saveResume(int jobseekerId, Resume resume)
View animation-grid-auto-rotation
$grid: (
"x ",
" x ",
" x ",
" x ",
" x ",
" x ",
" x ",
" x ",
View .babelrc
"presets": ["latest"],
"plugins": ["transform-object-rest-spread", "babel-plugin-transform-react-jsx"]
astericky / webpack.config.js
Last active Mar 3, 2017
Webpack 2 Work Config Example
View webpack.config.js
module.exports = {
entry: {
testname: './index.jsx',
output: {
path: 'path goes here',
filename: '[name].js',
module: {
View gist:dceb5c41804f9303e446d320b1aeacc6

1. Clone your fork:

git clone

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://
git fetch upstream
astericky / webpack.config.js
Created Mar 3, 2017
Webpack 2 Config Example
View webpack.config.js
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const VENDOR_LIBS = [
'react', 'react-dom', 'react-router', 'react-redux', 'redux', 'redux-thunk', 'lodash'
module.exports = {
astericky /
Created Feb 7, 2018 — forked from subfuzion/
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View Go Project Dockerfile Example
# Run this from the parent directory
FROM golang:1.9-alpine as build_container
View Apple iOS App Transport Security
View gist:369c6d02e7cfbe2daf6b0183b8f985b5


Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
You can’t perform that action at this time.