This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
name: upsource-service | |
name: upsource-service | |
spec: | |
type: LoadBalancer | |
ports: | |
- # The port that this service should serve on. |
This file contains 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
root@b700d288820c:/opt# android list sdk --extended --all | |
Refresh Sources: | |
Fetching https://dl.google.com/android/repository/addons_list-2.xml | |
Validate XML | |
Parse XML | |
Fetched Add-ons List successfully | |
Refresh Sources | |
Fetching URL: https://dl.google.com/android/repository/repository-11.xml | |
Validate XML: https://dl.google.com/android/repository/repository-11.xml | |
Parse XML: https://dl.google.com/android/repository/repository-11.xml |
This file contains 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
var gulp = require('gulp'); | |
var conventionalChangelog = require('conventional-changelog'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var addsrc = require('gulp-add-src'); | |
var concat = require('gulp-concat'); | |
/** | |
* Creates a `changelog` task, that will process all commits from the latest tag | |
* and generates a CHANGELOG.md file by appending the old contents to it. |
This file contains 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
+-----------------+ | |
| | | |
| Observable<A> | | |
| | | |
+--------+--------+ | |
| | |
| | |
+--------v--------+ | |
| | | |
| Observable<A> | |
This file contains 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
// omissis | |
@Override | |
public void onBindViewHolder(final CustomViewHolder holder, final int position) { | |
holder.mSwitch.setOnCheckedChangeListener( | |
new CompoundButton.OnCheckedChangeListener() { | |
@Override | |
public void onCheckedChanged(CompoundButton buttonView, final boolean isChecked) { | |
// TODO: handle your switch toggling logic here | |
} |
This file contains 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/sh | |
mp4="-threads 16 -strict -2 -c:v libx264 -c:a aac -f mp4" | |
webm="-threads 16 -map 0 -c:v libvpx -qmin 0 -qmax 50 -crf 5 -b:v 5M -c:a libvorbis -c:s webvtt -f webm" | |
ffmpeg -i $1 \ | |
$mp4 -vf scale=-2:1080 $2-1080.mp4 \ | |
$webm -vf scale=-2:1080 $2-1080.webm \ | |
$mp4 -vf scale=-2:720 $2-720.mp4 \ | |
$webm -vf scale=-2:720 $2-720.webm \ |
This file contains 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/sh | |
# originally from http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
palette="palette.png" | |
filters="fps=15,scale=320:-1:flags=lanczos" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 | |
rm $palette |
This file contains 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
mkdir %~dp0data\db | |
mkdir %~dp0log | |
echo logpath=%~dp0log\mongo.log >> "%~dp0mongod.cfg" | |
echo dbpath=C:\mongodb\data\db >> "%~dp0mongod.cfg" | |
sc.exe create MongoDB binPath= "\"%~dp0bin\mongod.exe\" --service --config=\"%~dp0mongod.cfg\"" DisplayName= "MongoDB" start= "auto" | |
net start MongoDB | |
pause |
NewerOlder