This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """Print a large terminal rendering of an emoji.""" | |
| from __future__ import annotations | |
| import argparse | |
| import math | |
| import os | |
| from pathlib import Path |
This file contains hidden or 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
| #lang overscan | |
| (require overscan/macos | |
| overscan/draw | |
| (only-in racket/file make-temporary-file) | |
| racket/draw | |
| (only-in racket/math pi) | |
| "twitch-secret.rkt") | |
| (define cam+screen |
This file contains hidden or 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
| module Main exposing (..) | |
| -- Stick this Elm file in a directory. Run `elm make` in the | |
| -- directory. Run `elm reactor`. Now you have an Elm program. | |
| import Html exposing (..) | |
| main : Program Never Model Msg | |
| main = |
This file contains hidden or 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 response = require('cfn-response'); | |
| const http = require('https'); | |
| const url = require('url'); | |
| exports.handler = function(event, context) { | |
| var props = event.ResourceProperties; | |
| var options = { | |
| hostname: 'api.github.com', | |
| headers: { | |
| 'Accept': 'application/vnd.github.v3+json', | |
| 'Authorization': `token ${props.GitHubToken}`, |
This file contains hidden or 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
| void setup() { | |
| size(1080, 1080); | |
| noStroke(); | |
| background(0, 0, 255); | |
| int rows = int(pow(2, int(random(1,6)))); | |
| int u = height / (rows + 4); | |
| int thickness = int(pow(2, int(random(1, 4)))); | |
| int uth1 = u / thickness; | |
| int uth2 = u + uth1; | |
| int startX = int(-u * 0.75); |
This file contains hidden or 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
| /* I'm not thrilled with this, but it should be enough to demonstrate ... something ... */ | |
| function Breadcrumb(el) { | |
| this.path = el.parentElement ? new Breadcrumb(el.parentElement) : null; | |
| this.left = el.previousElementSibling; | |
| this.right = el.nextElementSibling; | |
| } | |
| function Zipper(tree, path) { | |
| this.tree = tree; | |
| this.crumb = new Breadcrumb(tree); |
This file contains hidden or 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></head> | |
| <body> | |
| <div class="grid-thumb" id="grid-thumb-viv9" data-style-name="VIV9"> | |
| <a class="item-link" href="/shop/designers/vivienne_westwood_anglomania/julia_dress"> | |
| <div class="grid-thumb-images"> | |
| <img class="current" alt="Vivienne%20Westwood%20Anglomania - Julia%20Dress" width="270" height="405" src="https://pc-ap.renttherunway.com/productimages/front/270x/fc/VIV9.jpg"> | |
| <img alt="Vivienne%20Westwood%20Anglomania - Julia%20Dress" width="270" height="405" src="https://pc-ap.renttherunway.com/productimages/side/270x/fc/VIV9.jpg" class=""> | |
| <img alt="Vivienne%20Westwood%20Anglomania - Julia%20Dress" width="270" height="405" src="https://pc-ap.renttherunway.com/productimages/back/270x/fc/VIV9.jpg"> |
This file contains hidden or 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
| /* | |
| This is an incredibly rudimentary PhantomJS script to walk a DOM and emit a graphviz `dot` document. | |
| It is neither clever nor good. | |
| Proceed with caution. | |
| Usage: phantomjs viz.js http://2015.empirejs.org/ | tee >(dot -Tpng > test.png) | |
| */ | |
| var page = require('webpage').create(); | |
| var args = require('system').args; |
This file contains hidden or 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
| puthtml () | |
| { | |
| curl -F "file=@${1:--};filename=${1:-`uuidgen`.html}" \ | |
| -F "api_key=${2:-$PUTHTML_API_KEY}" \ | |
| http://www.puthtml.com/; | |
| } |
This file contains hidden or 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
| require 'rumoji' | |
| codepoints = Rumoji::Emoji::ALL.map(&:hex).map(&:downcase) | |
| codepoints.each do |c| | |
| puts "https://abs.twimg.com/emoji/v1/72x72/#{c}.png" | |
| end |
NewerOlder