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
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var conventionalChangelog = require('gulp-conventional-changelog'); | |
| var transform = function(commit) { | |
| var commitMap = { | |
| 'feat': 'Features', | |
| 'fix': 'Bug Fixes', | |
| 'docs': 'Documentation Changes', |
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
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var bump = require('gulp-bump')(); | |
| var bumpTargets = ['package.json', 'bower.json']; | |
| ['major', 'minor', 'patch'].forEach(function (type) { | |
| gulp.task('bump:' + type, function () { | |
| gulp.src(bumpTargets) |
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
| #!/usr/bin/env bash | |
| # install build tools and node for ubuntu | |
| sudo apt-get update -y | |
| sudo apt-get install -y build-essential | |
| curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - | |
| sudo apt-get install -y nodejs | |
| cd /opt/ |
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
| package com.novoda.github.reports; | |
| import java.sql.Date; | |
| import java.time.Instant; | |
| import java.util.concurrent.TimeUnit; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import rx.Observable; |
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 | |
| if [ -z "$1" ]; then | |
| shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4 | |
| else | |
| shot_path="$*" | |
| fi | |
| # Enable show taps on screen | |
| adb shell content insert --uri content://settings/system --bind name:s:show_touches --bind value:i:1 |
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 | |
| xcrun simctl io booted recordVideo --codec=h264 "$1".mp4; |
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 | |
| adb shell screenrecord --bit-rate 6000000 /sdcard/$1.mp4 & PID=$! | |
| # Upon a key press | |
| read -p "Press [Enter] to stop recording..." | |
| # Kills the recording process | |
| kill $PID | |
| # Wait for 3 seconds for the device to compile the video | |
| sleep 3 | |
| # Download the video |
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 | |
| on() { | |
| adb shell settings put global sysui_demo_allowed 1 > /dev/null | |
| adb shell am broadcast -a com.android.systemui.demo -e command enter > /dev/null | |
| adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1000 > /dev/null | |
| adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e level 4 > /dev/null | |
| adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e level 4 -e datatype lte > /dev/null | |
| adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false > /dev/null | |
| adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 100 -e plugged false > /dev/null |
OlderNewer