This Gist was automatically created by Carbide, a free online programming environment.
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
{ | |
let clientAppState = JSON.parse($("#client-app-state").text.replace(/&q;/g, '"')) | |
let { HttpState } = clientAppState | |
let route = Object.keys(HttpState)[0] | |
HttpState[route].data.properties.identifier.uuid | |
} |
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
#!/bin/bash | |
set -euo pipefail | |
mkdir -p tmp/overrides/webpack%3a/%2e | |
while true; do | |
while IFS= read -r -d '' override_file | |
do | |
file=$(echo "$override_file" | python -c 'import re, sys; print re.split("^tmp/overrides/webpack%3a/%2e/|%3f.*$", sys.stdin.read().strip())[1]') | |
cp -f "$override_file" "$file" |
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
# Read more about gapps-config file here: | |
https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options | |
# Prevent automatic removal | |
# +Browser # Stock Browser | |
# +CameraStock # Stock Camera | |
# +Email # Stock Email | |
# +Gallery # Stock Gallery | |
# +Launcher # Stock Launcher(s) |
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
/* 2>/dev/null | |
COMPILED=${0%.*} | |
[[ -e "$COMPILED" ]] || clang $0 -o "$COMPILED" -framework Foundation | |
exec "$COMPILED" $@ | |
*/ | |
#import <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) |
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
# Backwards compatibility for fish 2.0.0 | |
not contains source (builtin -n) | |
and alias source . |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.interestinglythere.sendtokindle</string> | |
<key>StartOnMount</key> | |
<true/> | |
<key>ProgramArguments</key> | |
<array> |
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
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; |
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
Sub AutoOpen() | |
If (True) Then | |
If (True) Then | |
If (False) Then | |
Else | |
If (False) Then | |
Else | |
Select Case Empty | |
Case Empty | |
tyqegexl = False |
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
#!/bin/bash | |
verbose() { | |
echo "$@" | |
"$@" | |
} | |
power-softrestart() { | |
verbose adb shell "su -c 'killall zygote'" | |
} |