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
web: gunicorn app:app |
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
class Regex { | |
let internalExpression: NSRegularExpression? | |
let pattern: String | |
init(_ pattern: String) { | |
self.pattern = pattern | |
do { | |
self.internalExpression = try NSRegularExpression(pattern: pattern, options: .CaseInsensitive) | |
} catch { | |
self.internalExpression = nil |
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 ruby | |
filename = ARGV[0] | |
File.open(filename, 'r').each do |line| | |
versionCode = line.match(/versionCode\s(\d*)/) | |
if versionCode != nil | |
v = versionCode.captures | |
puts v | |
end | |
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
#!/usr/bin/env python | |
import os | |
API_KEY='API_KEY' | |
DEVICE_TOKENS = 'DEVICE_TOKEN' | |
MESSAGES = "messages" | |
command_string = "curl https://android.googleapis.com/gcm/send" \ | |
" -H 'Content-Type: application/json'" \ | |
" -H 'Authorization: key=" + API_KEY + "'" \ |
NewerOlder