curl -O http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.6.7.tgz
cd /usr/share
sudo mkdir mongodb
chown -Rv {username} mongodb
cd mongodb
tar -zxvf ~/Downloads/mongodb-osx-x86_64-2.6.7.tgz
This file contains 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
language: android | |
sudo: required | |
jdk: openjdk8 | |
android: | |
components: | |
# https://github.com/travis-ci/travis-ci/issues/5036 | |
- tools | |
# The BuildTools version used by your project | |
- build-tools-28.0.3 |
This file contains 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
const scrape = require('website-scraper') | |
const path = require('path') | |
const options = { | |
urls: ['https://path.to.website.com'], | |
directory: path.resolve(__dirname, '<folder name here>'), | |
recursive: false | |
} | |
scrape(options) |
This file contains 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 com.github.spotbugs.SpotBugsTask | |
// ... | |
plugins { | |
// ... | |
id "com.github.spotbugs" version "1.7.1" | |
} | |
// ... |
This file contains 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
language: android | |
sudo: required | |
jdk: openjdk8 | |
env: | |
global: | |
- ANDROID_API=27 | |
- EMULATOR_API=24 | |
- ANDROID_BUILD_TOOLS=27.0.3 |
This file contains 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
@Grapes([ | |
@Grab('org.antlr:ST4:4.0.8'), | |
@GrabConfig(systemClassLoader = true)]) | |
import org.stringtemplate.v4.ST; | |
Word word = new Word("1234567890AB") | |
println word.getTomap() |
This file contains 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
@Grab(group='org.apache.pdfbox', module='pdfbox', version='2.0.0') | |
import org.apache.pdfbox.pdmodel.PDDocument | |
["url"].each { String url -> | |
boolean fails = false | |
try{ | |
new URL("$url").withInputStream { |
This file contains 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
#!/bin/bash | |
# boto is missing dependency when using AWS tools to push to eb | |
# http://stackoverflow.com/questions/23365374/aws-aws-push-importerror-no-module-named-boto-in-ubuntu | |
sudo pip install boto | |
rm -rf eb_deployment | |
mkdir -p eb_deployment | |
cd eb_deployment |
This file contains 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
|--5-1 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--4-5 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-1 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-2 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-3 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-5 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-9 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-10 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-11 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox | |
|--6-12 - , type=org.apache.pdfbox.pdmodel.interactive.form.PDTextbox |
This file contains 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
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
// If using software SPI (the default case): | |
#define OLED_MOSI 9 // data | |
#define OLED_CLK 10 | |
#define OLED_DC 11 | |
#define OLED_CS 12 |