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
| SELECT * from `state_boe_012219` | |
| WHERE | |
| (`state_boe_012219`.`CLEANED_VOTER_HISTORY` LIKE '%GE16%') AND | |
| (`state_boe_012219`.`CLEANED_VOTER_HISTORY` LIKE '%GE18%') AND | |
| (`state_boe_012219`.`CLEANED_VOTER_HISTORY` NOT LIKE '%GE17%') |
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
| UPDATE `state_boe_012219` SET `state_boe_012219`.`CLEANED_VOTER_HISTORY` = 'GE18GE17GE16PP16GE12GE10GE08PP08GE06GE05GE04GE03GE02' WHERE `state_boe_012219`.`COUNTYVRNUMBER` = '918273'; | |
| UPDATE `state_boe_012219` SET `state_boe_012219`.`CLEANED_VOTER_HISTORY` = 'GE18GE03GE02' WHERE `state_boe_012219`.`COUNTYVRNUMBER` = '817623'; |
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
| SELECT | |
| `state_boe_012219`.`COUNTYVRNUMBER`, | |
| `state_boe_012219`.`VOTER_HISTORY` | |
| FROM `state_boe_012219` | |
| WHERE (`state_boe_012219`.`STATUS` = 'ACTIVE') |
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
| CREATE TABLE `state_boe` ( | |
| `LASTNAME` varchar(255) DEFAULT NULL, | |
| `FIRSTNAME` varchar(255) DEFAULT NULL, | |
| `MIDDLENAME` varchar(255) DEFAULT NULL, | |
| `NAMESUFFIX` varchar(255) DEFAULT NULL, | |
| `RADDNUMBER` varchar(255) DEFAULT NULL, | |
| `RHALFCODE` varchar(255) DEFAULT NULL, | |
| `RAPARTMENT` varchar(255) DEFAULT NULL, | |
| `RPREDIRECTION` varchar(255) DEFAULT NULL, | |
| `RSTREETNAME` varchar(255) DEFAULT NULL, |
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
| command regex jo 's/(.+)/po print(String(data: try! JSONSerialization.data(withJSONObject: %1, options: .prettyPrinted), encoding: .utf8 )!)/' | |
| command regex jobj 's/(.+)/po [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:%1 options:nil error:nil] encoding: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 | |
| require 'nokogiri' | |
| require 'open-uri' | |
| html_data = open(ARGV[0]).read | |
| @test = Nokogiri::HTML(html_data) | |
| status_string = @test.xpath('//text').map.each.each { |i| i.inner_text }.last | |
| color_code = 31 # red |
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 | |
| require 'travis/yaml' | |
| require 'open3' | |
| content = File.read('.travis.yml') | |
| Travis::Yaml.parse! content do |config| | |
| cmd = "#{config[:script]}" | |
| Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr| |
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
| func searchUsingImage(image: UIImage) { | |
| if let imageData: NSData = UIImageJPEGRepresentation(image, 0.7) { | |
| SVProgressHUD.showWithStatus("Searching...") | |
| Alamofire.upload( | |
| .POST, | |
| "https://images.google.com/searchbyimage/upload", | |
| multipartFormData: { multipartFormData in | |
| multipartFormData.appendBodyPart(data: imageData, name: "encoded_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
| import UIKit | |
| class Foo: NSObject { | |
| struct Shared { | |
| static var Instance: Foo = Foo() | |
| } | |
| } |
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
| command regex curlme 's/(.+)/po [TTTURLRequestFormatter cURLCommandFromURLRequest:%1]/' |