Skip to content

Instantly share code, notes, and snippets.

Welcome to the Faker Bistro

Meatballs With Sauce - 9.00

A delightful tart combining delicious chinese cabbage and sweet apricot, set in a buttery pastry shell and finished with a hint of cardamom.

Lychee-glazed Goose Skewers - 27.00

Grilled salmon kebabs, marinated in Chechen spices and served with a fresh radicchio and dried apricot salad.

Afrikaans (South Africa) (af_ZA)

  • {{location.city_prefix}} {{person.firstName}}{{location.city_suffix}} e.g. South Stephenland
  • {{location.city_prefix}} {{person.firstName}} e.g. North Micheal
  • {{person.firstName}}{{location.city_suffix}} e.g. Vincentview
  • {{person.lastName}}{{location.city_suffix}} e.g. Britsland

Arabic (ar)

@matthewmayer
matthewmayer / main.js
Created November 2, 2021 07:54
Bulk import issues into Github Projects beta
const project="PN_***********"
const org="********"
const repo="**********"
const token="gho_*******************************"
const fetch = require("node-fetch")
const parse = require("parse-link-header")
const getAllIssuesPaginated = async () => {
let issues = []
let url = "https://api.github.com/repos/"+org+"/"+repo+"/issues?per_page=100&pulls=false"
https://github.com/user/project/pull/XX
If you just want the changes, not the commits you can generate a patch file by adding .patch to the pull request URL.
curl -L https://github.com/user/project/pull/XX.patch | git apply
@matthewmayer
matthewmayer / whatthefont.js
Last active July 10, 2020 13:30
paste this into Javascript console to see what fonts are being used
function walk(node) {
// I stole this function from here:
// http://is.gd/mwZp7E
var child, next;
var tagName = node.tagName ? node.tagName.toLowerCase() : "";
if (tagName == 'input' || tagName == 'textarea') {
return;
}
mogrify -geometry 1600x900^ -gravity center -crop 1600x900+0+0 *.jpg
# this will delete any local branches which are tracking branches, but the branch on origin has gone (ie its been merged to master already)
# it wont delete any local branches which dont have a matching origin, or havent been merged
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
[
{
"code": "ad",
"description": "",
"name": "Andorra",
"callingCodes": [
"+376"
],
"currencies": [
"Euro"
[
{
"code": "ad",
"description": "",
"name": "Andorra",
"callingCodes": [
"+376"
],
"currencies": [
"Euro"
import requests
import json
import calendar
from datetime import datetime, timedelta
#lists all files above 10MB in your slack files repo
#based on https://www.shiftedup.com/2014/11/13/how-to-bulk-remove-files-from-slack
_token = ""
_domain = ""