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
// Convert NodeList to Array http://davidwalsh.name/nodelist-array | |
var rangePairs = [].slice.call(document.querySelectorAll('dd.jobs-list-annual-salary')); | |
var averages = rangePairs.map(function(pair){ | |
var nums = pair.querySelectorAll('span.num'); | |
var floor = parseInt(nums[0].innerText) || 0; | |
var ceiling = parseInt(nums[1].innerText.replace(',', '')) || floor; | |
return parseInt((floor + ceiling)/2); | |
}); |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4514" systemVersion="13C64" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="9k6-sT-5eS"> | |
<dependencies> | |
<deployment defaultVersion="1536" identifier="iOS"/> | |
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/> | |
</dependencies> | |
<scenes> | |
<!--View Controller--> | |
<scene sceneID="P0p-p3-Ypa"> | |
<objects> |
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
--- | |
BasedOnStyle: Google | |
ColumnLimit: 200 | |
IndentWidth: 4 | |
BreakBeforeBraces: Linux | |
PointerBindsToType: false | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true |
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
<script type="text/javascript" charset="utf-8"> | |
window.onload = function(){ | |
location.href = "https://itunes.apple.com/us/app/3fende-xunnonyusuwomatome/id590384791?mt=8&uo=4"; | |
} | |
</script> |
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
#!/usr/bin/env ruby | |
require 'logger' | |
require 'strscan' | |
require 'uri' | |
class PukipaParseError < StandardError; | |
end | |
class Pukipa |
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
@interface ViewController () | |
@property (nonatomic, weak) IBOutlet UIButton *button; | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad | |
{ |
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
#ifdef DEBUG | |
#import "UIViewController+ClassNameOverlay.h" | |
#endif |
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
diff --git a/Gemfile b/Gemfile | |
index b2b133e..53a3988 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -25,7 +25,6 @@ if adapters.any? | |
when 'mysql2' ; gem 'mysql2' | |
when 'mysql' ; gem 'mysql' | |
when /postgres/ ; gem 'pg' | |
- when /sqlite3/ ; gem 'sqlite3' | |
else |
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
var select = window.getSelection().toString(); | |
var text = (select.length > 0)? select: document.querySelector("span.gt-card-ttl-txt").innerText; // Google Translate | |
var words = text.split(" "); | |
var methodName = ""; | |
for (var i = 0, l = words.length; i < l; i++) { | |
var word = words[i]; | |
if (word.length === 0) { | |
continue; | |
} |
OlderNewer