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
function setup() { | |
createCanvas(800, 800, WEBGL); | |
} | |
function draw() { | |
background("#111515"); | |
let scaleFactor = 1; |
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
function setup() { | |
createCanvas(800, 800, WEBGL); | |
} | |
function draw() { | |
background("#111515"); | |
let scaleFactor = 1; |
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
function setup() { | |
createCanvas(800, 800, WEBGL); | |
} | |
function draw() { | |
background("#111515"); | |
let scaleFactor = 2; |
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
import requests | |
import datetime | |
import os | |
import time | |
import json | |
# ------------------------------------------------------- | |
# | |
# User Bitstamp API to scrape current data. See: | |
# |
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
if exists('g:GtkGuiLoaded') | |
" some code here | |
call rpcnotify(1, 'Gui', 'Font', 'Monoid Regular 10') | |
let g:GuiInternalClipboard = 1 | |
endif | |
" ---------------------------------------------------------------------------------- | |
" Installed plugins. To install/update use: PlugInstall | |
" ---------------------------------------------------------------------------------- | |
call plug#begin() |
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
# | |
# Query published nodes of type article | |
# | |
query { | |
nodeQuery( | |
filter:{ | |
conditions:[ | |
{field:"type", value:"article"}, | |
{field:"status", value: "1"} | |
] |
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
ATDCY1=$D405 | |
ATDCY2=$D40C | |
ATDCY3=$D413 | |
BGCOL0=$D021 | |
BGCOL1=$D022 | |
BGCOL2=$D023 | |
BGCOL3=$D024 | |
C2DDRA=$DD02 | |
C2DDRB=$DD03 | |
CI2CRA=$DD0E |
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
select | |
ti.tid | |
, ttfd.name | |
, count(1) as count | |
from | |
taxonomy_index ti join node n on n.nid = ti.nid | |
, taxonomy_term_data td | |
, taxonomy_term_field_data ttfd | |
where | |
td.tid = ti.tid |
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
<?php | |
$im = imagecreatefrompng("vga-palette.png"); | |
$sx = (int) 800 / 16; | |
$sy = (int) 800 / 16; | |
$ox = (int) ($sx / 2); | |
$oy = (int) ($sx / 2); | |
for($y = 0; $y < 16; $y++) { | |
for($x = 0; $x < 16; $x++) { | |
$rgb = imagecolorat($im, $sx*$x + $ox, $sy*$y + $oy); |