Skip to content

Instantly share code, notes, and snippets.

View swarut's full-sized avatar
💭
TapiUnicornnnnnn

Warut Surapat swarut

💭
TapiUnicornnnnnn
  • Medidata Solutions
  • Tokyo, Japan
View GitHub Profile
@swarut
swarut / styles.less
Created May 10, 2018 12:03 — forked from dendrochronology/styles.less
Atom.io styles for rainbow indent guides. Yay rainbows!
/*
* Atom Stylesheet
*
* .generate-indents(): makes pretty indent guides.
* Enable 'Settings' -> 'Show Indent Guide' and taste the rainbow!
*
*/
// Default and base colors for indent guides
@indentColor: hsla(345, 100%, 55%, .3); // Manipulate this to make pretty
#!/bin/sh
# Launch application using ios-sim and set up environment to inject test bundle into application
# Source: http://stackoverflow.com/a/12682617/504494
if [ "$RUN_APPLICATION_TESTS_WITH_IOS_SIM" = "YES" ]; then
test_bundle_path="$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.$WRAPPER_EXTENSION"
environment_args="--setenv DYLD_INSERT_LIBRARIES=/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection --setenv XCInjectBundle=$test_bundle_path --setenv XCInjectBundleInto=$TEST_HOST"
ios-sim launch $(dirname $TEST_HOST) $environment_args --args -SenTest All $test_bundle_path
echo "Finished running tests with ios-sim"
@swarut
swarut / gist:3874286
Created October 11, 2012 17:51 — forked from tangmae/gist:3874207
Homework#2 Calculator
public class calculator(){
private Keyboard keyboard;
private Screen screen;
private Stack operant;
private Stack operator;
private String showValue;
private State calState;
enum State{
on,