This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "classname.h" | |
@interface classname () | |
@end | |
@implementation classname | |
+(classname *)instance { | |
static dispatch_once_t onetime; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Install latest docker binary | |
cd /tmp | |
wget -c http://get.docker.io/builds/Linux/x86_64/docker-latest.tgz | |
tar xzf /tmp/docker-latest.tgz -C / | |
# Install docker service | |
# Download the required files from https://github.com/docker/docker/tree/master/contrib/init/systemd to your Vagrant directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker.withRegistry('', 'dockerhub-credentials-cleclerc') { | |
writeFile file: "${pwd()}/.m2/settings.xml", text: "<settings><localRepository>${pwd()}/.m2/repo</localRepository></settings>" | |
stage 'Build Web App' | |
docker.image('cloudbees/java-build-tools:0.0.5').inside { | |
git 'https://github.com/cyrille-leclerc/game-of-life.git' | |
sh "mvn -B -V -s ${pwd()}/.m2/settings.xml clean package" | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import json | |
import os, glob, sys | |
# Helpers | |
def jDump(dict): | |
return json.dumps(dict, sort_keys = True, indent = 4) | |
def printInfo(info, dict): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import json | |
import decimal | |
from boto3.dynamodb.conditions import Key, Attr | |
from botocore.exceptions import ClientError | |
# Helper class to convert a DynamoDB item to JSON. | |
class DecimalEncoder(json.JSONEncoder): | |
def default(self, o): | |
if isinstance(o, decimal.Decimal): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collecting jumpcloud_aws from git+git://github.com/synaptic-cl/[email protected]#egg=jumpcloud_aws | |
Cloning git://github.com/synaptic-cl/jumpcloud_aws.git (to revision v0.1.5) to /private/var/folders/vl/np67j_tj6xj4y9mrsd1m19cw0000gn/T/pip-install-8ek5ceo0/jumpcloud-aws | |
Requirement already satisfied: beautifulsoup4==4.5.3 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (4.5.3) | |
Requirement already satisfied: boto3==1.7.22 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (1.7.22) | |
Requirement already satisfied: bs4==0.0.1 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (0.0.1) | |
Requirement already satisfied: requests==2.13.0 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (2.13.0) | |
Requirement already satisfied: six==1.10.0 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (1.10.0) | |
Requirement already satisfied: click==6.7 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (6.7) | |
Collecting PyYAML==3.12 (from jumpcloud_aws) | |
Using cached https://files.p |
OlderNewer