brew uninstall --ignore-dependencies node icu4c
brew install node
This file contains hidden or 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
| // for multiple requests | |
| let isRefreshing = false; | |
| let failedQueue = []; | |
| const processQueue = (error, token = null) => { | |
| failedQueue.forEach(prom => { | |
| if (error) { | |
| prom.reject(error); | |
| } else { | |
| prom.resolve(token); |
This file contains hidden or 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
| require 'rspec_command' | |
| require "json" | |
| # 1. A recent version of Ruby is required | |
| # 2. Ensure the required gems are installed with `gem install rspec json rspec-command` | |
| # 3. Run this from the command line with rspec sampletokenSpec.rb | |
| # Optionally output the test results with -f [p|d|h] for required views of the test results. | |
| # For debugging I added a clear action to the contract which clears everything in the tables |
This file contains hidden or 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 url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,700'); | |
| html, body { | |
| height: 100%; | |
| width: 100%; | |
| } | |
| body { | |
| font-family: 'Open Sans', sans-serif; | |
| font-weight: 400; |
This file contains hidden or 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 | |
| MAC=false | |
| date -r "$now" +%Y-%m-%d &> /dev/null | |
| if [ "$?" -ne "0" ]; then echo "LINUX"; MAC=false; else echo 'MAC'; MAC=true; fi | |
| now=`date +%s` | |
| while true | |
| do | |
| if [ "$MAC" == "true" ]; then data=`date -r "$now" +%Y-%m-%d`; else data=`date -d @"$now" +%Y-%m-%d`; fi |
This file contains hidden or 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
| <?php | |
| $lat = -24.108764; | |
| $lng = 16.500156; | |
| function WGS84toGPS($lat, $lng){ | |
| $lat = number_format($lat, 6); | |
| $lng = number_format($lng, 6); | |
| // define latitude coordinate with minutes and seconds | |
| $lat_card = ($lat > 0) ? 'N' : 'S'; |
This file contains hidden or 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
| <?php | |
| // Middleware: | |
| // app\Http\Middleware\Log4php.php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| class Log4php | |
| { |
This file contains hidden or 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 java.io.IOException; | |
| import java.lang.annotation.Annotation; | |
| import java.lang.reflect.Type; | |
| import io.reactivex.Completable; | |
| import io.reactivex.Observable; | |
| import io.reactivex.ObservableSource; | |
| import io.reactivex.Single; | |
| import io.reactivex.SingleSource; | |
| import io.reactivex.annotations.NonNull; |
This file contains hidden or 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
| { | |
| "name": "webpack-sass", | |
| "version": "1.0.0", | |
| "scripts": { | |
| "start": "webpack-dev-server --open --mode development", | |
| "build": "webpack -p" | |
| }, | |
| "devDependencies": { | |
| "babel-core": "^6.26.0", | |
| "babel-loader": "^7.1.4", |
This file contains hidden or 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 { Left, Right } = require('fantasy-eithers') | |
| const daggy = require('daggy') | |
| Function.prototype.map = function (f) { | |
| return x => f(this(x)) | |
| } | |
| //- Where everything changes... | |
| const login = user => | |
| user.name == 'Tom' |