base.GetComponent<PolygonCollider2D>().isTrigger = true;
base.transform.Find("PotCollider").GetComponent().isTrigger = 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
const wm = require('./api/windowman.js'); | |
console.log(wm); | |
var window = new wm.Window("My window"); |
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
// 1 | |
function getcaptcha(digits){ | |
let count = 0; | |
digits.split("").forEach((digit, i,ds) => { | |
let nextDigit = ds[i+1] || ds[0]; | |
if(digit == nextDigit) count += parseInt(digit, 10); | |
}); | |
return count; | |
} |
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
// Visit https://www.youtube.com/subscription_manager | |
let vals = []; | |
Array.from(document.getElementsByClassName("yt-uix-subscription-notifications-all")).forEach((bellicon) => { | |
vals.push(bellicon.parentNode.parentNode.parentNode.childNodes[0].childNodes[0].childNodes[0].getAttribute("href").replace("/channel/", "")/*replace first instance*/); | |
}); | |
vals | |
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
@-moz-document domain("tildes.net") { | |
.btn.btn-comment-collapse { | |
position: absolute; | |
transform: translate(-20px, -4px); | |
background-color: #eee; | |
border: none; | |
height: 100%; | |
transition: 0.1s background-color, 0.1s transform; | |
display: inline-flex; | |
text-align: right; |
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 bplistCreator, bplistParser, plist; | |
bplistParser = require('bplist-parser'); | |
bplistCreator = require('bplist-creator'); | |
plist = require('plist'); | |
// reveal the underlying modules | |
exports.plist = plist; |
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
let ace = {/*your syntax highlighter here*/} | |
let tokens = {/*your syntax highlighter tokens and values*/} | |
console.log(JSON.stringify((() => { | |
let monarchTokenizer = {} | |
Object.keys(acerules).forEach(key => { | |
let value = acerules[key]; | |
monarchTokenizer[key] = []; |
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
let video = document.querySelector("video"); | |
let frameTime = 0.01; | |
let timeElem = document.createElement("div"); | |
let q = document.createTextNode("---"); | |
timeElem.style.position = "fixed"; | |
timeElem.style.top = "0"; | |
timeElem.style.right = "0"; | |
timeElem.style.padding = "10px"; | |
timeElem.style.fontSize = "24pt"; | |
timeElem.style.backgroundColor = "#fff"; |
zig suggestions for the first day of the month
zig is very confusing because it has so many number types. u16
, i64
, f32
? what does all this mean‽ zig should follow the path of similar languages and simplify this down to one number type. I propose u0
because it can fill in for any other number type with a minimal loss of precision and takes less memory to store.
instead of the confusing explicit error returns, zig should have untyped exceptions. that way, you have to be on edge every time you call a function and you have to worry if it might decide to error. it's especially nice because the errors shouldn't be mentioned in the docs. this makes programming more fun and exciting whenever you encounter a new error that you didn't know about.
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 makeBoard(fill) { | |
// it would be useful if board could center at 0,0 and expand infinitely | |
let board = []; | |
let limits; | |
let reso = { | |
clear: () => { | |
board = []; | |
}, |
OlderNewer