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
package com.acme.example; | |
import com.sun.javaws.Launcher; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.File; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.net.URL; |
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
// parameters for emulator | |
-prop persist.sys.language=iw -prop persist.sys.country=IL | |
// Force Locale Change | |
String languageToLoad = "iw"; | |
Locale locale = new Locale(languageToLoad); | |
Locale.setDefault(locale); | |
Configuration config = new Configuration(); | |
config.locale = locale; |
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
function get_youtube_id( $youtube_url ) { | |
$url = parse_url($youtube_url); | |
if( $url['host'] !== 'youtube.com' && | |
$url['host'] !== 'www.youtube.com'&& | |
$url['host'] !== 'youtu.be'&& | |
$url['host'] !== 'www.youtu.be') | |
return ''; |
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
// parseUri 1.2.2 | |
// (c) Steven Levithan <stevenlevithan.com> | |
// MIT License | |
function parseUri (str) { | |
var o = parseUri.options, | |
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), | |
uri = {}, | |
i = 14; |
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 parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
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
<!-- Subscribe to all topics. --> | |
<!-- Steps to a subscribe-to-all-topics button: | |
1. make a product for all topics, get ID number (87939: http://michelleglauser.jarg0n.com/gsfnmichelle/products/gsfnmichelle_all_topics) | |
2. make all new topics automatically be assigned to that product by ID number (through a jQuery click on that element) | |
3. hide that product by ID number | |
4. make a subscribe button on the front page | |
5. give the subscribe button a call to the product page's follow button --> | |
<!-- Header HTML: --> |
NewerOlder