Skip to content

Instantly share code, notes, and snippets.

gcloud config set compute/region us-east1
gcloud config set compute/zone us-east1-d
gcloud services enable container.googleapis.com
# Task 1: Create a Docker image and store the Dockerfile
source <(gsutil cat gs://cloud-training/gsp318/marking/setup_marking.sh)
cd ~ && gcloud source repos clone valkyrie-app --project=${GOOGLE_CLOUD_PROJECT}
gcloud config set compute/region us-central-1
gcloud config set compute/zone us-central1-a
gcloud services enable cloudbuild.googleapis.com
gcloud services enable container.googleapis.com
# Task 1: Download the monolith code and build your container
gcloud config set compute/region us-east1
gcloud config set compute/zone us-east1-b
# Task 1: Create a project jumphost instance
gcloud compute instances create nucleus-jumphost \
--network nucleus-vpc \
--machine-type f1-micro
<?php
// RUN: php -S 0.0.0.0:80 line.php
$access_token = '';
$ChannelSecret = '';
$HttpRequestBody = file_get_contents('php://input');
$HeaderSignature = $_SERVER['HTTP_X_LINE_SIGNATURE'];
@SarsTW
SarsTW / GAME_MASTER_POKEMON_v0_2.tsv
Created August 8, 2016 02:45 — forked from anonymous/GAME_MASTER_POKEMON_v0_2.tsv
Pokemon from GAME_MASTER protobuf file v0.2 in a .tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 27 columns, instead of 12 in line 2.
PkMn BaseStamina BaseAttack BaseDefense Type1 Type2 BaseCaptureRate BaseFleeRate CollisionRadiusM CollisionHeightM CollisionHeadRadiusM MovementType MovementTimerS JumpTimeS AttackTimerS QuickMoves CinematicMoves AnimTime Evolution EvolutionPips PokemonClass PokedexHeightM PokedexWeightKg HeightStdDev WeightStdDev FamilyId CandyToEvolve
1 90 126 126 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.1599999964237213 0.10000000149011612 0.3815000057220459 0.6539999842643738 0.27250000834465027 HoloPokemonMovementType.POKEMON_ENC_MOVEMENT_JUMP 10.0 1.149999976158142 29.0 d601dd01 5a3b76 6d56d53fdaac2a3f6d56d53f93a9ea3f0000000036ab0a403333b33fbfbbbb3f 02 HoloPokemonClass.POKEMON_CLASS_NORMAL 1 0.699999988079071 6.900000095367432 0.08749999850988388 0.862500011920929 HoloPokemonFamilyId.V0001_FAMILY_BULBASAUR 25
2 120 156 158 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.07999999821186066 0.07000000029802322 0.3187499940395355 0.637499988079071 0.2549999952316284 H
@SarsTW
SarsTW / tracking.coffee
Created October 14, 2015 03:19 — forked from pke/tracking.coffee
sample usage of google.analytics framework for Windows Modern UI apps
ApplicationView = Windows.UI.ViewManagement.ApplicationView
ApplicationViewState = Windows.UI.ViewManagement.ApplicationViewState
google.analytics.configure("UA-YOURID", someUniqueDeviceToken, "Your APP NAME", "YOUR APP VERSION")
###
EVENT LISTENERS FOR ANALYTICS REPORTING
###
#---------------------
Awesome watchOS
=========================
A curated list of awesome watchOS frameworks, libraries, sample apps.
### Contents
- [Getting Started](#getting-started)
- [Library and Frameworks](#libraries-and-frameworks)
- [Design](#design)
- [Design Guidelines](#design-guidelines)