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 PreferenceStruct | |
| def initialize(line) | |
| typeTable = { | |
| "boolean"=>"Bool", | |
| "an integer between"=>"Int", | |
| "a valid IETF language tag"=>"String", | |
| "subreddit name" => "String", | |
| "one of \\(`on`, `off`, `subreddit`\\)" => "PreferenceMediaType", | |
| "one of \\(`confidence`, `old`, `top`, `qa`, `controversial`, `new`\\)" => "PreferenceDefaultCommentSortType" |
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
| { | |
| :url=>"https://api.github.com/repos/sonsongithub/reddift/issues/21", | |
| :labels_url=>"https://api.github.com/repos/sonsongithub/reddift/issues/21/labels{/name}", | |
| :comments_url=>"https://api.github.com/repos/sonsongithub/reddift/issues/21/comments", | |
| :events_url=>"https://api.github.com/repos/sonsongithub/reddift/issues/21/events", | |
| :html_url=>"https://github.com/sonsongithub/reddift/issues/21", | |
| :id=>68853891, | |
| :number=>21, | |
| :title=>"/api/deleteflairtemplate", | |
| :user=>{ |
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 'octokit' | |
| client = Octokit::Client.new(:access_token => "") | |
| user = client.user | |
| puts user.login | |
| page = 1 | |
| issues = [] | |
| for i in 1..20 |
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 'octokit' | |
| client = Octokit::Client.new(:access_token => "") | |
| user = client.user | |
| puts user.login | |
| page = 1 | |
| issues = [] | |
| for i in 1..20 |
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
| source = <<EOS | |
| csi_page_type | |
| url_encoded_fmt_stream_map | |
| enabled_engage_types | |
| tag_for_child_directed | |
| enablecsi | |
| caption_tracks | |
| ptk | |
| account_playback_token | |
| ad_device |
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
| var cell = tableView.dequeueReusableCellWithIdentifier(contents.cellIdentifier) |
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
| protocol Photo { | |
| func getName() -> String | |
| } | |
| struct Facebook: Photo { | |
| func getName() -> String { | |
| return "facebook" | |
| } | |
| } |
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 'net/http' | |
| require 'uri' | |
| require 'json' | |
| uri = URI.parse('https://fcm.googleapis.com/fcm/send') | |
| http_proxy = ENV['HTTP_PROXY'] | |
| https_proxy = ENV['HTTPS_PROXY'] | |
| proxy_host = 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
| NSString *clientID = @"your client ID"; | |
| NSString *XMashapeKey = @"your key"; | |
| NSMutableCharacterSet *allowedCharacterSet = [NSMutableCharacterSet alphanumericCharacterSet]; | |
| [allowedCharacterSet addCharactersInString:@"-._~"]; | |
| NSString *base64 = [imageBinaryData base64EncodedStringWithOptions:0]; | |
| NSString *escapedBase64 = [base64 stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacterSet]; | |
| NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://imgur-apiv3.p.mashape.com/3/image"]]; |
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 'json' | |
| require 'date' | |
| r = [] | |
| hosts = [] | |
| hosts.each{|host| | |
| if`sudo openssl x509 -in /etc/letsencrypt/live/#{host}/fullchain.pem -noout -dates` =~ /notAfter=(.+?)$/ | |
| entry = {} |