Skip to content

Instantly share code, notes, and snippets.

body {
font-family: "Rubik Mono One", sans-serif;
}
h1 {
position: absolute;
left: 40%;
}
.sandbox {
<h1> Whack-A-Frump </h1>
<div class='score-brd'>
<p class='score'>0</p>
</div>
<div class='sandbox'>
<div class='row'>
<div class='hole'><img class='frmp-hd' src="https://lh3.googleusercontent.com/6wALe1l716CQxW-Q5Q1AgyVti8sAW2TzQ9hZLOjW2hEI-8NCMYLJsPKT4yAk0bjSB2tZWJIMvElDDdDngBo1tKrOJaGz7au0cMN-p0fZVSnb3UtjYDyLSxFmhFywV_rxrH7OZ7JUdknk00SXwSFQk1a4PduukODRHvt1y0D3uUE_lPntYM-ujFcSwO81uT7j-pweGD35d4MMzjMZbQbkH7BMaMa0Wg8WIWsimL1FAGztlUpP4YGdJnCuZjx0GC6G64zp_CR0ApmI0zpJbeQT5j986c5Pubs30FuZv40HbPTgSpt4o-N-aUJB38JyQgx9Dim6gf_mRq_A1nxQJ6eEpYAW0C1nvdd01AoHW5cHOfFeilnzboG4c_cgBjj4BLG3MLGknorUTOp1eKAvU5YwqpL-O_DY3MFfeA06pD-7qVxvwg-rLyknNlA2ZTFJMlwI1koO2DUk3qU9TSD0byECm8fObdi2_f3Go6wimTf0_BEWIWI9s9XH5QUhzt-PA69H5p4Q7GWBY8bWFmOaSRG1O-1daXbpLEJkrl-w29aLkGcbsUdDUwuzT3eTEI9YN-ZYcNiYnjLqZuWE8JDrejsTFOj31zrlwzpf2UjIsE4=w800-h600-no"></div>
<div class='hole'><img class='frmp-hd' src="https://lh3.googleusercontent.com/6wALe1l716CQxW-Q5Q1AgyVti8sAW2TzQ9hZLOjW2hEI-8NCMYLJsPKT4yAk0bjSB2tZWJIMvElDDdDngBo1tKrOJaGz7au0cM
let $photoInput = document.getElementById("input");
let image = new Image();
let $editor = document.getElementById("editor");
let $editorCtx = $editor.getContext("2d");
function opacitor(op) {
let imgData = $editorCtx.getImageData(0, 0, $editor.width, $editor.height);
for (let x = 0; x < image.width; x++) {
for (let y = 0; y < image.height; y++) {
let index = (x + y * image.width) * 4;
let $photoInput = document.getElementById("input");
let fileReader = new FileReader();
let image = new Image();
let $editor = document.getElementById("editor");
let $editorCtx = $editor.getContext("2d");
//This is a performance test
function opacitor(op) {
let imgData = $editorCtx.getImageData(0, 0, $editor.width, $editor.height);
for (let x = 0; x < image.width; x++) {
const int64 = ref.types.int64;
const rust = ffi.Library(path.join('C:/Sites/factorial/target/release/factorial.dll'),{
factorialize: [int64, [int64]],
});
rust.factorialize(5); // -> 120
#[no_mangle]
pub extern fn factorialize(mut num: i64) -> i64 {
if num == 0 || num == 1 {
return 1;
}
let mut cnt = num - 1;
loop {
if cnt < 1 {
break;
}
<ul id="menu">
<li data-menuanchor="page1" class="active"><a href="#page1"></a></li>
<li data-menuanchor="page2"><a href="#page2"></a></li>
<li data-menuanchor="page3"><a href="#page3"></a></li>
<li data-menuanchor="page4"><a href="#page4"></a></li>
</ul>
$(document).ready(function(){
$('#fullpage').fullpage({
//Navigation
menu: '#menu',
lockAnchors: false,
anchors:['firstPage', 'secondPage'],
navigation: false,
navigationPosition: 'right',
navigationTooltips: ['firstSlide', 'secondSlide'],
$(document).ready(function(){
$(#fullpage).fullpage();
});
<div id="fullpage">
<div class="section"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
</div>
</div>