Skip to content

Instantly share code, notes, and snippets.

@cferdinandi
cferdinandi / drive.html
Created July 2, 2024 16:11
Can you customize Web Components without a framework!? Tutorial here: https://youtu.be/OAfoK5MTS5Q
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pick at Random</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="pick-at-random.css">
</head>
@cferdinandi
cferdinandi / index.html
Created June 25, 2024 16:14
Can you build a modern web app using only vanilla Web Components in 2024? Watch part 2 tutorial on YouTube: https://youtu.be/6pttzPPtiFA
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pick at Random</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
@Kuirak
Kuirak / gun-test.ts
Last active March 25, 2018 04:02
Gun TS typings
import * as Gun from "gun";
interface Schema {
mark: Person;
}
var gun = Gun<Schema>();
gun.put("test"); // should fail
gun.put(["test"]); // should fail
@swlaschin
swlaschin / ndclondon17_fp_track.md
Last active July 10, 2017 11:04
Functional Track talks from NDC London 2017

Functional Track talks from NDC London 2017

Also, here is the list of all videos from NDC London 2017:

Wednesday 2017-01-18

@stuartleeks
stuartleeks / ConvertFromDocker.ps1
Last active October 31, 2019 18:52
ConvertFrom-Docker
function PascalName($name){
$parts = $name.Split(" ")
for($i = 0 ; $i -lt $parts.Length ; $i++){
$parts[$i] = [char]::ToUpper($parts[$i][0]) + $parts[$i].SubString(1).ToLower();
}
$parts -join ""
}
function GetHeaderBreak($headerRow, $startPoint=0){
$i = $startPoint
while( $i + 1 -lt $headerRow.Length)
@srquinn21
srquinn21 / Makefile
Last active December 15, 2020 16:19
Frontend Development with Makefile
#==========================================================
# Environment/Configuration
#==========================================================
# For project consistency, its better to depend on npm binaries loaded locally than
# globally, so we add .node_modules/.bin to the path for shorthand references. This
# means you should add any binaries you need to "devDependencies" in package.json.
export PATH := ./node_modules/.bin/:$(PATH)
# Pull in the name and version from package.json. The name will default to "app" if not set.
@donnut
donnut / currying.md
Last active October 28, 2023 17:58
TypeScript and currying

TypeScript and currying

In functional programming you often want to apply a function partly. A simple example is a function add. It would be nice if we could use add like:

var res2 = add(1, 3); // => 4

var add10To = add(10);
var res = add10To(5); // => 15
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@staltz
staltz / introrx.md
Last active October 10, 2024 20:37
The introduction to Reactive Programming you've been missing
-------Frameworks------
EmberJS
AngularJS
React
Flight
BackboneJS / UnderscoreJS <- Use lodash instead of underscore
-------Build Tools-----