Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Sanders astericky

View GitHub Profile
@astericky
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 ---> http://www.docjar.com/html/api/java/util/HashMap.java.html#631
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
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 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 / 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
astericky / curl.md
Created Feb 7, 2018 — forked from subfuzion/curl.md
curl POST examples
View curl.md

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
ENV APP_NAME my-app
ENV TARGET_DIR /go/src/github.com/MediaMath/${APP_NAME}
COPY . ${TARGET_DIR}
WORKDIR ${TARGET_DIR}
View Apple iOS App Transport Security
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>openweathermap.org</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
View gist:369c6d02e7cfbe2daf6b0183b8f985b5

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
You can’t perform that action at this time.