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
RL url = new URL(args[0]); | |
URLConnection connection; | |
connection = url.openConnection(); |
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
URL url = new URL(args[0]); | |
URLConnection connection; | |
connection = url.openConnection(); |
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
try{ | |
URL url = new URL("http://98.137.200.255/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22AAPL%22)&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"); | |
URLConnection connection; | |
connection = url.openConnection(); | |
HttpURLConnection httpConnection = (HttpURLConnection) connection; | |
int responseCode = httpConnection.getResponseCode(); | |
if(responseCode == HttpURLConnection.HTTP_OK) { // 200 | |
System.out.println("------------TRUE----------"); | |
InputStream in = httpConnection.getInputStream(); |
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
try{ | |
URL url = new URL("http://98.137.200.255/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22AAPL%22)&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"); | |
URLConnection connection; | |
connection = url.openConnection(); | |
HttpURLConnection httpConnection = (HttpURLConnection) connection; | |
int responseCode = httpConnection.getResponseCode(); | |
if(responseCode == HttpURLConnection.HTTP_OK) { // 200 | |
System.out.println("------------TRUE----------"); | |
InputStream in = httpConnection.getInputStream(); |
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
try{ | |
URL url = new URL("http://98.137.200.255/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22AAPL%22)&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"); | |
URLConnection connection; | |
connection = url.openConnection(); | |
HttpURLConnection httpConnection = (HttpURLConnection) connection; | |
int responseCode = httpConnection.getResponseCode(); | |
if(responseCode == HttpURLConnection.HTTP_OK) { // 200 | |
System.out.println("------------TRUE----------"); | |
InputStream in = httpConnection.getInputStream(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<ul id="my-feature"> | |
<li id="1">Go on </li> |
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
<?php | |
global $db; | |
$db = new PDO('mysql:host=localhost;dbname=homeTaskList;charset=utf8', 'root', 'databasePHG912'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); | |
if(isset($_GET["action"])) { | |
switch ($_GET["action"]) { | |
case "getData" : getData(); |
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
"use strict"; | |
var myGame = { | |
config : { | |
canvasId : "game-canvas", | |
ballSize : "20%", | |
firstBallColor : "black", | |
secondBallColor : "yellow", | |
backgroundColor : "#b0da82" | |
}, |
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
// Ealier | |
myGame.canvas.addEventListener("touchmove" ,myGame.onCanvasTouchMove ,false); | |
// Event Handler Works Bad! | |
onCanvasTouchMove : function (event) { | |
myGame.ctx.clearRect(0,0,myGame.config.canvasWidth, myGame.config.canvasHeight); | |
for(var i = 0; i < event.changedTouches.length; ++i) { |
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
// Global module | |
var myModule = (function ( jQ, _ ) { | |
function privateMethod1(){ | |
jQ(".container").html("test"); | |
} | |
function privateMethod2(){ | |
console.log( _.min([10, 5, 100, 2, 1000]) ); | |
} |