xcopy C:\From C:\To /D /E /I /H /Y /G
done_
xcopy C:\From C:\To /D /E /I /H /Y /G
Desktop.getDesktop().browse(new URL("http://maanoo.com").toURI());
var canvas = document.getElementById("canvas");
var c = canvas.getContext("2d");
c.fillRect c.fillText c.strokeRect c.strokeText
c.fillCircle c.strokeCircle
CanvasRenderingContext2D.prototype.fillCircle = function(x, y, r) {
this.beginPath();
this.arc(x, y, r, 0, 2 * Math.PI);
this.fill();
};
CanvasRenderingContext2D.prototype.strokeCircle = function(x, y, r) {
this.beginPath();
this.arc(x, y, r, 0, 2 * Math.PI);
this.stroke();
};
<body onload="load()"> <canvas id="canvas_back"></canvas> ... </body>
#canvas_back {
position: fixed;
top: 0px;
left: 0px;
z-index: -1;
}
var c, w, h;
function load() {
var canvas = document.getElementById("canvas_back");
c = canvas.getContext("2d");
window.addEventListener('resize', resize, false);
resize();
}
function resize() {
w = canvas.width = window.innerWidth;
h = canvas.height = window.innerHeight;
draw();
}
function draw() {
// use c, w and h to draw the canvas
...
requestAnimationFrame(draw);
}
private static final String NAME = "...";
public static SharedPreferences getPreferences(Activity a) {
return a.getSharedPreferences(NAME , Context.MODE_PRIVATE);
}
public static void save(Activity a) {
SharedPreferences.Editor sp = getPreferences(a).edit();
sp.putString("name1", value1);
sp.putInt("name2", value2);
sp.commit();
}
public static void load(Activity a) {
SharedPreferences sp = getPreferences(a);
value1 = sp.getString("name1", default1);
value2 = sp.getInt("name2", default2);
}
getPreferences(Context.MODE_PRIVATE)
localStorage["name"] = value;
value = localStorage["name"];
localStorage["name"] = JSON.stringify(object);
object = JSON.parse(localStorage["name"]);
$(".item")
document.querySelectorAll(".item")
function q(query) {
return document.querySelectorAll(query);
}
q(".item")
<?php
$path = "./counter.txt";
$count = intval(file_get_contents($path));
if(isset($_GET["add"])) {
$count++;
file_put_contents($path, $count);
}
echo $count;
?>
*{
transition: all 0.7s ease-in-out;
}
value = value % 360
value = (value - min) % (max - min) + min
value = ((value % 360) + 360) % 360
value = ((value - min) % (max - min) + max - min) % (max - min) + min
len = max - min value = ((value - min) % len + len) % len + min
public void setClipboard(String text) {
Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();
StringSelection selection = new StringSelection(text);
c.setContents(selection, selection);
}