Skip to content

Instantly share code, notes, and snippets.

View astericky's full-sized avatar

Chris Sanders astericky

View GitHub Profile
@astericky
astericky / gist:5775128
Created June 13, 2013 16:25
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 ---> http://www.docjar.com/html/api/java/util/HashMap.java.html#631
public class ResumeRepository
{
private final Map<Integer, List<Resume>> resumes;
public ResumeRepository()
{
this.resumes = new HashMap<>();
}
public Resume saveResume(int jobseekerId, Resume resume)
@astericky
astericky / animation-grid-auto-rotation
Created October 13, 2013 16:51
Animation Grid Auto Rotate
$grid: (
"x ",
" x ",
" x ",
" x ",
" x ",
" x ",
" x ",
" x ",
@astericky
astericky / webpack.config.js
Created March 3, 2017 12:26
Webpack 2 Config Example
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
astericky / webpack.config.js
Last active March 3, 2017 15:49
Webpack 2 Work Config Example
module.exports = {
entry: {
testname: './index.jsx',
},
output: {
path: 'path goes here',
filename: '[name].js',
},
module: {
@astericky
astericky / .babelrc
Created March 3, 2017 15:28
Babel Config
{
"presets": ["latest"],
"plugins": ["transform-object-rest-spread", "babel-plugin-transform-react-jsx"]
}

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

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

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@astericky
astericky / curl.md
Created February 7, 2018 23:22 — forked from subfuzion/curl.md
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.

# Run this from the parent directory
FROM golang:1.9-alpine as build_container
ENV APP_NAME my-app
ENV TARGET_DIR /go/src/github.com/MediaMath/${APP_NAME}
COPY . ${TARGET_DIR}
WORKDIR ${TARGET_DIR}
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>openweathermap.org</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>

SHORTCUTS

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