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
printSimpleAndExit(){ | |
echo "#simple usage ./asset_generator.sh <input.png> <output> <reference_ratio>" | |
exit 1 | |
} | |
printError(){ | |
echo "Error : $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
# | |
# Build configuration for Circle CI | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/starbucks-android/app/build/outputs/apk/ | |
machine: | |
timezone: |
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 | |
STARTTIME=$(date +%s) | |
HOCKEY_ID=$1 | |
APK_NAME=$2 | |
USE_RELEASE_NOTES=$3 | |
printf "HOCKEY APPLICATION ID $HOCKEY_ID\n" | |
printf "BUILD APK NAME $APK_NAME\n" |
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 | |
# Colors | |
ESC_SEQ="\x1b[" | |
COL_RESET=$ESC_SEQ"39;49;00m" | |
COL_RED=$ESC_SEQ"31;01m" | |
COL_GREEN=$ESC_SEQ"32;01m" | |
COL_YELLOW=$ESC_SEQ"33;01m" | |
COL_BLUE=$ESC_SEQ"34;01m" | |
COL_MAGENTA=$ESC_SEQ"35;01m" |
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 | |
# <bitbar.title>Show emoji</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Kent Karlsson</bitbar.author> | |
# <bitbar.author.github>vogonistic</bitbar.author.github> | |
# <bitbar.desc>Example of how to use emojis</bitbar.desc> | |
# <bitbar.image>http://i.imgur.com/z4T9X6G.png</bitbar.image> | |
# <bitbar.abouturl>https://github.com/matryer/bitbar-plugins/blob/master/Tutorial/emoji.sh</bitbar.abouturl> |
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 'httparty' | |
require 'rubygems' | |
require 'json' | |
def bloom | |
begin | |
response = HTTParty.get 'http://www.bloomberght.com/dynamics/updateDynamicData' | |
jsonResult = JSON.parse(response) | |
#puts response |
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 'httparty' | |
require 'nokogiri' | |
def enpara | |
response = HTTParty.get 'http://www.finansbank.enpara.com/doviz-kur-bilgileri/doviz-altin-kurlari.aspx' | |
doc = Nokogiri::HTML response | |
doc.css('#pnlContent span dl').each do |row| | |
if (row.css('dt').text)=="USD" | |
puts "#{row.css('dd').first.text.split(' ').first} : #{row.css('dd').last.text.split(' ').first}" | |
end |
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 | |
# <bitbar.title>Show emoji</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Kent Karlsson</bitbar.author> | |
# <bitbar.author.github>vogonistic</bitbar.author.github> | |
# <bitbar.desc>Example of how to use emojis</bitbar.desc> | |
# <bitbar.image>http://i.imgur.com/z4T9X6G.png</bitbar.image> | |
# <bitbar.abouturl>https://github.com/matryer/bitbar-plugins/blob/master/Tutorial/emoji.sh</bitbar.abouturl> |