(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env fish | |
# similar script in Fish | |
# still under construction, need to quiet `git status` more effectively | |
function update -d 'Update git repo' | |
git stash --quiet | |
git pull | |
git stash apply --quiet | |
end |
.font-size($pxValue){ | |
@remValue: (@pxValue / 10); | |
font-size: ~"@{pxValue}px"; | |
font-size: ~"@{remValue}rem"; | |
} | |
html { font-size: 62.5%; } | |
.my-element { | |
.font-size(13px); |
import { fileURLToPath } from 'url'; | |
import path, { dirname } from 'path'; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = dirname(__filename); | |
export default { | |
// all the usual config goes here... | |
{ | |
"countries": { | |
"country": [ | |
{ | |
"countryCode": "AD", | |
"countryName": "Andorra", | |
"currencyCode": "EUR", | |
"population": "84000", | |
"capital": "Andorra la Vella", | |
"continentName": "Europe" |
[{ | |
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup", | |
"Country": "Afghanistan", | |
"ISO": "AF", | |
"Format": "NNNN", | |
"Regex": "^\\d{4}$" | |
}, { | |
"Note": "With Finland, first two numbers are 22.", | |
"Country": "Åland Islands", | |
"ISO": "AX", |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// ---- | |
// Sass (vundefined) | |
// Compass (vundefined) | |
// dart-sass (v1.6.2) | |
// ---- | |
// ============================================================================= | |
// | |
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS | |
// --------------------------------------------------- |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
import { graphql } from "gatsby" | |
export const TextQuery = graphql` | |
fragment TextBlock on ContentfulTextBlock { | |
id | |
bodyContent { | |
json | |
} | |
sys { | |
contentType { |
// | |
// Hacked together from http://utahjs.com/2010/09/22/nodejs-and-mysql-introduction/ | |
// | |
var Client = require('mysql').Client; | |
var client = new Client(); | |
client.host ='some.host.com'; | |
client.user = 'user'; | |
client.password = 'password'; | |
console.log("connecting..."); |