Skip to content

Instantly share code, notes, and snippets.

View fetchTe's full-sized avatar

te fetchTe

View GitHub Profile
{
"$schema": "vscode://schemas/color-theme",
"comment": "Cold Snack, created by Evan Rowe.",
"author": "Evan Rowe",
"name": "Cold Snack Theme",
"tokenColors": [{
"settings": {
"background": "#002B36",
"foreground": "#93A1A1"
}

GraphQL vs Firebase

With the variety of server-side technologies today, developers have a lot of choices when it comes to deciding what kind of backend to use for their next application.

In this article, we want to explore the differences between GraphQL and Firebase, two very popular server-side technologies.

Overview

Before diving into technical details, let's create some perspective on the two technologies and where they're coming from.

@magnetikonline
magnetikonline / README.md
Last active October 10, 2024 17:31
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script which will:

  • Iterate all commits made within a Git repository.
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active November 3, 2024 17:14
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@0xjac
0xjac / private_fork.md
Last active November 16, 2024 18:10
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@dannguyen
dannguyen / google-fu-tips.md
Last active February 27, 2023 22:05
Drafting a list of general search tips
@kamilziajka
kamilziajka / docker.sh
Last active April 25, 2018 11:38
docker remove
# Remove all stopped containers
docker rm $(docker ps -a | grep "Exited" | cut -d " " -f1)
# Remove all images
docker rmi $(docker images | tail -n +2 | awk '{ print $3; }')
# Stop all containers except docker-registry
docker stop $(docker ps -a | grep -v "docker-registry" | tail -n +2 | cut -d " " -f1)
# Remove all containers except docker-registry
@nikoskip
nikoskip / gfonts.php
Last active September 20, 2022 21:34
Demo: http://nikoskip.me/gfonts.php | You only have to use the CSS import URL that Google gives you, for instance: http://fonts.googleapis.com/css?family=Cabin:500,700,500italic,700italic
<?php
$fontTypes = array('woff2', 'woff', 'ttf', 'svg', 'eot');
$gFontURL = 'http://fonts.googleapis.com/css?family=';
$uaFonts = array(
'woff2' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36',
'woff' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0; GTB7.4; InfoPath.3; SV1; .NET CLR 3.1.76908; WOW64; en-US)',
'ttf' => 'Mozilla/5.0 (Linux; U; Android 2.2.1; en-ca; LG-P505R Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
'svg' => 'Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10',
@DrBoolean
DrBoolean / monads.js
Last active June 10, 2016 01:12
monads in a minute
[1,2,3].map(x => x+1)
// [2, 3, 4]
[1,2,3].map(x => [x+1])
// [[2], [3], [4]]
[1,2,3].chain(x => [x+1])
// [2, 3, 4]
[1,[2],3].chain(x => [x+1])