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
body { | |
font-family: "Rubik Mono One", sans-serif; | |
} | |
h1 { | |
position: absolute; | |
left: 40%; | |
} | |
.sandbox { |
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
<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 |
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 $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; |
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 $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++) { |
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 int64 = ref.types.int64; | |
const rust = ffi.Library(path.join('C:/Sites/factorial/target/release/factorial.dll'),{ | |
factorialize: [int64, [int64]], | |
}); | |
rust.factorialize(5); // -> 120 |
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
#[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; | |
} |
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
$(document).ready(function(){ | |
$('#fullpage').fullpage({ | |
//Navigation | |
menu: '#menu', | |
lockAnchors: false, | |
anchors:['firstPage', 'secondPage'], | |
navigation: false, | |
navigationPosition: 'right', | |
navigationTooltips: ['firstSlide', 'secondSlide'], |
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
$(document).ready(function(){ | |
$(#fullpage).fullpage(); | |
}); |
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
<div id="fullpage"> | |
<div class="section"></div> | |
<div class="slide"></div> | |
<div class="slide"></div> | |
<div class="slide"></div> | |
</div> | |
</div> |
NewerOlder