The office during the day has become the last place people want to be when then really want to get work done.
Offices have become interruption factories: it's just one interruption after
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
| var path = require('path'); | |
| module.exports = (function () { | |
| return path.dirname(require.main.filename || process.mainModule.filename); | |
| })(); | |
| // Example of usage: | |
| var root = require('root'); // In root will be absolute path to your application |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| {- Implementation of the Exercises for the Forms section of the Elm Architecture Tut | |
| - http://guide.elm-lang.org/architecture/user_input/forms.html | |
| - | |
| - Elm Platform 0.17.1 | |
| -} | |
| import Html exposing (..) | |
| import Html.App as Html | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (onInput, onClick) |
| 'use strict'; | |
| const driveUploadPath = 'https://www.googleapis.com/upload/drive/v3/files'; | |
| // 'id' is driveId - unique file id on google drive | |
| // 'version' is driveVersion - version of file on google drive | |
| // 'name' name of the file on google drive | |
| // 'appProperties' keep the custom `ifid` field | |
| const fileFields = 'id,version,name,appProperties'; |
Native Module in React-Native
To get a great grip on how wo build one, read these blogs.
In your command-line run the following commands:
brew doctorbrew update| variables: | |
| ANDROID_COMPILE_SDK: "28" | |
| test:unit: | |
| image: circleci/android:api-${ANDROID_COMPILE_SDK} | |
| cache: | |
| key: gradle-cache | |
| paths: [ .gradle ] | |
| variables: | |
| # GRADLE_OPTS: "-Dorg.gradle.daemon=false" |
| # ios | |
| match(...) | |
| package = load_json(json_path: "../package.json") | |
| increment_version_number(version_number: package["version"]) | |
| increment_build_number(build_number: ENV["CIRCLE_BUILD_NUM"] || 1) | |
| # android | |
| package = load_json(json_path: "../package.json") |