This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Hello World" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum ProjectPermission { ViewProject, EditProject ... } | |
enum TeamPermission { AddUserToTeam, AddProjectToTeam ... } | |
type Permission = | |
{ kind: ProjectPermission; project: ProjectInstance } | | |
{ kind: TeamPermission; team: TeamInstance } | | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>DOM-based example</title> | |
<style id="jsbin-css"> | |
body { | |
background-color: white; | |
font-family: monospace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); | |
const argv = require('minimist')(process.argv.slice(2)); | |
const url = argv.url; | |
const outdir = argv.outdir || '.'; | |
let offset = url.indexOf('.com'); | |
let filename = url.substring(offset + 5).replace(/\//g,'-'); | |
if (filename.endsWith('.php')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const BARRIER_HEIGHT = 40; | |
const BARRIER_WIDTH = 70; | |
const BARRIER_MAX_HEALTH = 10; | |
class Barrier extends Rectangle { | |
constructor(startX, startY) { | |
super(startX, startY, BARRIER_WIDTH, BARRIER_HEIGHT) | |
this.health = BARRIER_MAX_HEALTH; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [{ | |
"type": "gif", | |
"id": "l3vR6JC7NZZgTpmWQ", | |
"slug": "studiosoriginals-winter-cold-l3vR6JC7NZZgTpmWQ", | |
"url": "https:\/\/giphy.com\/gifs\/studiosoriginals-winter-cold-l3vR6JC7NZZgTpmWQ", | |
"bitly_gif_url": "http:\/\/gph.is\/2gFTi3x", | |
"bitly_url": "http:\/\/gph.is\/2gFTi3x", | |
"embed_url": "https:\/\/giphy.com\/embed\/l3vR6JC7NZZgTpmWQ", | |
"username": "studiosoriginals", |