Skip to content

Instantly share code, notes, and snippets.

javascript: var style = document.createElement("style");style.innerHTML = '._2jry ._9-_._3j7q, ._2jry ._9-_._3j7r, ._2jry ._9-_._3j7n, ._2jry ._9-_._3j7o, ._2jry ._9-_._3j7l, ._2jry ._9-_._3j7m {background-image: url(http://i.imgur.com/E5p4J5F.png) !important;}';document.body.appendChild(style);
<!DOCTYPE html>
<!-- saved from url=(0039)http://mdn.github.io/decode-audio-data/ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>decodeAudioData example</title>
@LewisGet
LewisGet / think.js
Last active September 16, 2016 13:25
(0.3 < Math.random()) ? (0.5 < Math.random()) ? 1 : -1 : 0
// # Speed up
// 1. last time used memory (nearest start random)
// 2. thinking bundle (tag of thnik memory thing and be used by call it)
var trainingUserData = [
{age: 23, annualSalary: 30000, getCrad: true},
{age: 17, annualSalary: 30000, getCrad: false},
{age: 18, annualSalary: 35000, getCrad: true},
// 讓金錢種要比例上升的資料
/* 資料雜訊等到完成第一次版本後執行
{age: 17, annualSalary: 830000, getCrad: true},
{age: 17, annualSalary: 9830000, getCrad: true},
*/
var taringData = [
{data: [0.97681,0.10723,0.64385,0.29556], return: 1},
{data: [0.67194,0.2418,0.83075,0.42741], return: 1},
{data: [0.20619,0.23321,0.81004,0.98691], return: 1},
{data: [0.51583,0.055814,0.92274,0.75797], return: 1},
{data: [0.70893,0.10836,0.33951,0.77058], return: 1},
{data: [0.55743,0.67804,0.061044,0.72689], return: 1},
{data: [0.15654,0.75584,0.01122,0.42598], return: -1},
{data: [0.50462,0.15137,0.33878,0.41881], return: 1},
{data: [0.22657,0.59272,0.24103,0.46221], return: -1},
<?php
$fact = array(10, -1);
$taringData = array();
for ($i = 0; $i < 50000; $i++)
{
$x = rand(1, 10);
$y = rand(1, 100);
exports.lj.createRandomPositionEntity = function (number, local, entity)
{
var entities = [];
for (var i = 0; i < number; i++)
{
var cloneLocal = new org.bukkit.Location(local.world, local.x, local.y, local.z);
cloneLocal.x += parseInt((Math.random() - 0.5) * 20);
// get ItemStack
var item = self.getItemInHand();
// get ItemStack you can create by this too
var item = new org.bukkit.inventory.ItemStack(1)
// get location
var local = self.location;
local.world.dropItem(local, item);
// https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
exports.lj.potion = new org.bukkit.potion.PotionEffect(org.bukkit.potion.PotionEffectType.HEAL, 99999, 20);
exports.ljSystem.initPlayer = function () {
try
{
exports.A = exports.ljSystem.utils.player("LewisJang");
} catch (err) {
console.log("no A");
}
try
{