<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
# Parse json file in bash: | |
mocha -R json | grep failures -m 1 | awk '{ print $2 }' | |
#export als json | |
#-------------| get only 1. line | |
#----------------------------------| get only second part of string | |
# PATH |
#!/bin/bash | |
# Functions ============================================== | |
# return 1 if global command line program installed, else 0 | |
# example | |
# echo "node: $(program_is_installed node)" | |
function program_is_installed { | |
# set to 1 initially | |
local return_=1 |
FROM php:5.6-cli | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
libfreetype6-dev \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-install iconv \ | |
&& apt-get remove -y \ | |
libfreetype6-dev \ | |
&& apt-get install -y \ |
//AngularJS app | |
.config( function myAppConfig ($locationProvider) { | |
$locationProvider.html5Mode(true); | |
... | |
} |
var gulp = require('gulp'), | |
browserSync = require('browser-sync'), | |
historyApiFallback = require('connect-history-api-fallback'); | |
gulp.task('serve', function() { | |
browserSync({ | |
files: ['js/**/*.js', '*.html', 'css/**/*.css'], | |
server: { | |
baseDir: '.', | |
middleware: [ historyApiFallback() ] |
var lastTimeBackPress=0; | |
var timePeriodToExit=2000; | |
function onBackKeyDown(e){ | |
e.preventDefault(); | |
e.stopPropagation(); | |
if(new Date().getTime() - lastTimeBackPress < timePeriodToExit){ | |
navigator.app.exitApp(); | |
}else{ | |
window.plugins.toast.showWithOptions( |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
/** | |
* TODO: | |
* 1) remove all ".idea" folders! | |
* 2) remove all "coverage" folders! | |
* 3) remove all empty folders! | |
* 4) remove all "examples" folders! | |
* 5) remove all "example" folders! | |
* 6) remove all "test" folders! | |
* 7) remove all "tests" folders! | |
* 8) remove all "*.md" files extly with names! |
# ----------------------------------------- | |
# Alias "coupplat" = cordova upgrade platfrom | |
# ----------------------------------------- | |
# Usage: coupplat <platform_name> <version> | |
# $ coupplat android 8.1.1 | |
# $ coupplat ios 4.0.0 | |
# | |
# Todo's: | |
# - add check if this is cordova project/folder | |
alias coupplat='function _cordovaUpgradePlatform(){ echo "Platform: $1"; echo "Version: $2"; pwd; cordova platform rm "cordova-$1" --save; cordova platform add "cordova-$1@$2" --save;};_cordovaUpgradePlatform' |