What is Kubernetes?
- Deploy a Kubernetes cluster on Digital Ocean using kubeadm
| #!/bin/bash | |
| : "${FORKED:=}" | |
| if [ -z "${FORKED}" ]; then | |
| echo >&2 'mongod for initdb is going to shutdown' | |
| mongod --pidfilepath /tmp/docker-entrypoint-temp-mongod.pid --shutdown | |
| echo >&2 'replica set will be initialized later' | |
| FORKED=1 "${BASH_SOURCE[0]}" & | |
| unset FORKED | |
| mongodHackedArgs=(:) # bypass mongod --shutdown in docker-entrypoint.sh |
| """ | |
| Example TensorFlow script for finetuning a VGG model on your own data. | |
| Uses tf.contrib.data module which is in release v1.2 | |
| Based on PyTorch example from Justin Johnson | |
| (https://gist.github.com/jcjohnson/6e41e8512c17eae5da50aebef3378a4c) | |
| Required packages: tensorflow (v1.2) | |
| Download the weights trained on ImageNet for VGG: | |
| ``` | |
| wget http://download.tensorflow.org/models/vgg_16_2016_08_28.tar.gz |
| /*<?php | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| static function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
| # Orignal version taken from http://www.djangosnippets.org/snippets/186/ | |
| # Original author: udfalkso | |
| # Modified by: Shwagroo Team and Gun.io | |
| import sys | |
| import os | |
| import re | |
| import hotshot, hotshot.stats | |
| import tempfile | |
| import StringIO |
| #!/bin/sh | |
| # Current as working as of 2012/4/17 | |
| # Xcode 4.3.2 | |
| PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX" | |
| WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace" | |
| CONFIG="AdHoc" | |
| SCHEME="XXXXXXXX" |