Skip to content

Instantly share code, notes, and snippets.

View tomyfalgui's full-sized avatar

Tomas Alejandro V. Falgui III tomyfalgui

  • General Santos City, Philippines
View GitHub Profile
const nav = document.querySelector('.departments .list.nav')
const delimiterIndex = Array.from(nav.children).findIndex(el => Array.from(el.classList).includes('delimiter'))
const links = Array.from(nav.children).slice(delimiterIndex + 1)
const sleep = ms => new Promise(r => setTimeout(r, ms));
async function loop() {
// script init
function randomIntFromInterval(min, max) { // min and max included
return Math.floor(Math.random() * (max - min + 1) + min)
}
function shiz(start,end) {
const yo = []
for(let i = start; i < end + 1; i++) { yo.push(i)} return yo;}
const array = [...shiz(153, 158), ...shiz(161,173), ...shiz(175, 181), ...shiz(183,187), ...shiz(189,192)]
const eggData = [
{
displayName: "Egg Drop #0402",
accessory: getTrait("accessory", "dead"),
background: getTrait("background", "green"),
body: getTrait("body", "brown"),
eyes: getTrait("eyes", "dead"),
head: getTrait("head", "smallCrack"),
mouth: getTrait("mouth", "cigarette"),
season: "Egg Drop Season 1",
@tomyfalgui
tomyfalgui / Daedalus-versions.json
Created October 12, 2021 09:05
Daedalus testnet 4.3.2 Logs
{"versions":[{"version":"4.3.2","date":"2021-10-09T06:07:59.799Z"}]}
@tomyfalgui
tomyfalgui / machine.js
Last active May 1, 2020 14:24
Generated by XState Viz: https://xstate.js.org/viz
const checkIfLoggedIn = (context, event) => new Promise((resolve,reject) => {
return resolve()
})
const checkIfEnoughCredits = (context,event) => new Promise((res, rej) => {
return res()
})
const checkIfEnoughSlots = (context,event) => new Promise((res, rej) => {
return res()
@tomyfalgui
tomyfalgui / cloudSettings
Last active June 6, 2018 12:05
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-06-06T12:05:38.459Z","extensionVersion":"v2.9.2"}
@tomyfalgui
tomyfalgui / .block
Created September 16, 2017 03:23
fresh block
license: mit
scrolling: no
border: yes
@tomyfalgui
tomyfalgui / SCSS.md
Created July 21, 2017 11:54 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@tomyfalgui
tomyfalgui / cloudSettings
Last active December 5, 2017 11:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-05T11:18:47.575Z","extensionVersion":"v2.8.6"}