Skip to content

Instantly share code, notes, and snippets.

View ryanwarsaw's full-sized avatar

Ryan Warsaw ryanwarsaw

View GitHub Profile
[
{
"id": "username",
"selector": ".page-header>h1>span",
"type": "single"
},
{
"id": "stats",
"selector": "h2>small",
"cases": [
Found Element Match: <small>kills</small>
Matching Element Size: 1
Payload Name: GLOBAL_KILLS Payload Value: 20878
Found Element Match: <small>deaths</small>
Matching Element Size: 1
Payload Name: GLOBAL_DEATHS Payload Value: 18125
Found Element Match: <small>friends</small>
Matching Element Size: 1
Payload Name: FRIENDS_COUNT Payload Value: 13
Found Element Match: <small>kd ratio</small>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EthernetBuiltIn</key>
<string>Yes</string>
<key>GenerateCStates</key>
<string>Yes</string>
<key>GeneratePStates</key>
<string>Yes</string>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EthernetBuiltIn</key>
<string>Yes</string>
<key>GenerateCStates</key>
<string>Yes</string>
<key>GeneratePStates</key>
<string>Yes</string>
private final Overcast overcast = new OvercastStats();
public void someEvent() {
overcast.getPlayerByNameAsync("rockymma", new Callback<OvercastPlayer>() {
@Override
public void call(OvercastPlayer result) {
// Do something with the result.
}
});
}
package me.ryanw.tradeoffermanager.handler;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import me.ryanw.tradeoffermanager.offer.TradeOffer;
import java.util.Collection;
@JsonRootName("response")
public class TradeOfferHandler {
package me.ryanw.tradeoffermanager.handler;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import me.ryanw.tradeoffermanager.offer.TradeOffer;
import java.util.Collection;
@JsonRootName("response")
public class TradeOfferHandler {
webmaker-core@1.6.1 /Users/ryan/Documents/JavaScriptProjects/webmaker-core
├─┬ autoless@0.1.7
│ ├─┬ autoprefixer-core@5.1.7
│ │ ├── browserslist@0.2.0
│ │ ├── caniuse-db@1.0.30000451
│ │ ├── num2fraction@1.0.1
│ │ └─┬ postcss@4.0.6
│ │ ├── js-base64@2.1.9
│ │ └─┬ source-map@0.2.0
│ │ └── amdefine@1.0.0
# Install Command Line Tools (Xcode) if it isn't already installed.
if type xcode-select >&- && xpath=$(xcode-select --print-path) && test -d "$xpath" && test -x "$xpath" ; then
# TODO: Reverse if statement logic to remove unnecessary logic.
else
xcode-select --install
fi
# Install Homebrew (Package Manager) if it isn't already installed.
if ! brew_location="$(type -p brew)" || [ -z "$brew_location" ]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Command Line Tools
if ! type xcode-select >&- && xpath=$(xcode-select --print-path) && test -d "$xpath" && test -x "$xpath"; then
# Accept the Xcode license agreement
xcodebuild -license
# Run command line tool installation script
xcode-select --install
fi