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
else if(operation == 2) { | |
InfoPackage pack = new InfoPackage(); | |
String tTime = pack.getTime(); | |
try { | |
getAppletContext().showDocument(new URL(getCodeBase()+"thanks.php?time=" + tTime ),"_top"); | |
} | |
catch (MalformedURLException ex) { | |
System.out.println(ex.getMessage()); | |
} | |
} |
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
if(map[pX][pY] == Constants.MAP_WIN) { | |
endDate = new java.util.Date(); | |
SimpleDateFormat sdf; | |
sdf = new SimpleDateFormat("hh:mm:ss.SSS"); | |
eTime = sdf.format(endDate); | |
SendData sender = new SendData(packUp(sTime, eTime, recActions)); | |
sendThread = new Thread(sender); | |
sendThread.start(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script> | |
</head> | |
<body> | |
<div id="reddit-content"> |
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
<snippet> | |
<content><![CDATA[ | |
# ${1:Your Post Title} | |
- ${2:Name} | |
- ${3:Twitter handle} | |
- ${4:2013/04/23} | |
- ${5:Post Category} | |
- ${6:Post Status (e.g. "published" or "draft")} | |
${7:Your post text starts here.} |
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
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "auto_complete_visible", "operator": "not_equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^(\\]|\\)|\\}|>|\\\"|'|\\;)", "match_all": 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
Stderr from the command: | |
stdin: is not a tty | |
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5' returned 100: Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
Some packages could not be installed. This may mean that you have | |
requested an impossible situation or if you are using the unstable | |
distribution that some required packages have not yet been created | |
or been moved out of Incoming. |
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
--- | |
vagrantfile-local: | |
vm: | |
box: ubuntu-precise12042-x64-vbox43 | |
box_url: 'http://box.puphpet.com/ubuntu-precise12042-x64-vbox43.box' | |
hostname: null | |
network: | |
private_network: 192.168.56.101 | |
forwarded_port: | |
AErO1YHRmKKz: |
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
/** | |
* Animate elements on hover | |
* | |
* Requires animate.css & JQuery | |
*/ | |
$('.element').hover(function() { | |
var element = $(this); | |
element.addClass('animated shake'); | |
}, function() { | |
var element = $(this); |
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 GameSchema = new Schema({ | |
title: String, | |
description: String, | |
location: String, | |
created_on: { type: Date, default: Date.now }, | |
active: { type: Boolean, default: true }, | |
accepting_players: { type: Boolean, default: true }, | |
players: [{ | |
type: Schema.Types.ObjectId, | |
ref: 'User' |
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
function matchSearchTerm(string, matchTerm) { | |
if (!matchTerm) return string; | |
var words = string.split(' '); | |
var final = ''; | |
var parsedWords = []; | |
words.forEach((word, index) => { | |
if (word.toLowerCase().indexOf(matchTerm) > -1) { | |
if (final) parsedWords.push(final); |
OlderNewer