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
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
# CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |
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
class Leveldb < Formula | |
desc "Key-value storage library with ordered mapping" | |
homepage "https://github.com/google/leveldb/" | |
url "https://s3.eu-central-1.amazonaws.com/wb-rd/leveldb-1.19-macos1012fix.tar.gz" | |
sha256 "7a580e543a3b69efb4407619c48dbeac2043eccd385574f9de53f2dcfea65897" | |
option "with-test", "Verify the build with make check" | |
depends_on "gperftools" | |
depends_on "snappy" |
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
#Squared and resize the video | |
ffmpeg -i all.mp4 -vf "scale=256:256:force_original_aspect_ratio=decrease,pad=256:256:(ow-iw)/2:(oh-ih)/2" all_square.mp4 | |
#Convert video to gif | |
ffmpeg -y -i all_square.mp4 -vf fps=10,scale=256:-1:flags=lanczos,palettegen palette.png | |
ffmpeg -i all_square.mp4 -i palette.png -filter_complex "fps=10,scale=256:-1:flags=lanczos[x];[x][1:v]paletteuse" all.gif | |
#Convert gif to png | |
# ffmpeg -i all_square.mp4 -vcodec png pngs/%05d.png | |
ffmpeg -i all.gif -vcodec png pngs/%0d.png |
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
#switch to docker-machine | |
eval "$(docker-machine env default)" | |
#run docker image | |
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD={{superstrong-password}}' -p 1433:1433 -d microsoft/mssql-server-linux | |
#create new docker-machine make sure docker-machine have 3.5GB of ram | |
#docker-machine create -d virtualbox --virtualbox-memory 4096 default | |
#edit default docker-machine make sure docker-machine have 3.5GB of ram |
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
# Register for the preview by sending an email to Multiple IPs with your subscription ID and intended use. | |
# Do not attempt to complete the remaining steps: | |
# - Until you receive an e-mail notifying you that you've been accepted into the preview | |
# - Without following the instructions in the email you receive | |
# Login to Your Azure account | |
$path= "AzureProfile.json" | |
Select-AzureRmProfile -path $path | |
$subscription-name = "BizPark" | |
Get-AzureRmSubscription -SubscriptionName $subscription-name | Select-AzureRmSubscription |
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 | |
# | |
# Add a Google Analytics tag to static website files | |
# @see http://adambuchanan.me/post/26345221717/updating-google-analytics-code-on-many-static-pages | |
# Tested on MacOS 10.8.X | |
# | |
# Usage: | |
# Set the GA parameters below | |
# Execute the script from the top-level of the static site | |
# |
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
#Add remote origin | |
git remote add origin $(github-address) | |
#Push to origin | |
git push -u origin master | |
#Create new branch | |
git checkout -b $(new-branch) | |
git push -u origin $(new-branch) |
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
public string SignLanguageName | |
{ | |
get | |
{ | |
string signLanguageName = AppResources.ChooseLanguageLabel; | |
if (selectedSpeaker == "id_ID") | |
{ | |
if (selectedLanguage == "Bisindo") | |
signLanguageName = "Bahasa Isyarat Indonesia"; |
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
#create new docker-machine make sure docker-machine have 3.5GB of ram | |
#docker-machine create -d virtualbox --virtualbox-memory 4096 default | |
#edit default docker-machine make sure docker-machine have 3.5GB of ram | |
docker-machine stop | |
VBoxManage modifyvm default --memory 4096 | |
docker-machine start | |
# switch to docker-machine | |
eval "$(docker-machine env default)" |
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
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
# USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |
OlderNewer