View Watson.pde
import http.requests.*; | |
void setup(){ | |
size(640,640); | |
String txt = "The Quick Brown Fox Jumped Over the Lazy Dog"; | |
JSONObject json = getJSONForText(txt); | |
PostRequest post = new PostRequest("https://gateway.watsonplatform.net/natural-language-understanding/api/v1/analyze?version=2018-03-19"); | |
post.addUser(USERNAME,PASSWORD); | |
post.addHeader("Content-Type", "application/json"); |
View seoul256-dawesome.vim
" " _____ _ ___ ___ ___ " | |
" " | __|___ ___ _ _| |_ | _| _| " | |
" " |__ | -_| . | | | | _|_ | . | " | |
" " |_____|___|___|___|_|___|___|___|.vim " | |
" | |
" " Low-contrast dark Vim color scheme using Seoul Colors " | |
" | |
" File: seoul256.vim | |
" URL: github.com/junegunn/seoul256.vim | |
" Author: Junegunn Choi (junegunn.c@gmail.com) |
View GridMaker.pde
/** | |
* Grid Maker for Notes to Myself | |
* http://producedforuse.com | |
* http://brendandawes.com | |
*/ | |
import dawesometoolkit.*; //http://cloud.brendandawes.com/dawesometoolkit/ | |
import processing.pdf.*; | |
import controlP5.*; //http://www.sojamo.de/libraries/controlP5/ |
View ifttt.php
<?php | |
require($_SERVER['DOCUMENT_ROOT'] . '/kirby/bootstrap.php'); | |
// Path to a configuration file outside of a web accesible directory containing your secret pass phrase and salt. | |
include '/Path/To/Your/conf.inc'; | |
if(get('id').$SALT==$IFTTT_PASS.$SALT) { |
View .vimrc
set nocompatible " be iMproved, required | |
filetype off " required | |
set ignorecase | |
set autoindent | |
set cursorline | |
set noswapfile | |
set autoread | |
set t_Co=256 | |
set number | |
set laststatus=2 |
View Processing Starting Template
import dawesometoolkit.*; | |
import processing.pdf.*; | |
final String PROJECT = "project-x"; | |
final int BACKGROUND_COLOR = #000000; | |
final int SECONDS_TO_CAPTURE = 60; | |
final int VIDEO_FRAME_RATE = 60; | |
int videoFramesCaptured = 0; | |
boolean recordVideo = false; |
View Processing:videoexport
final int VIDEO_FRAME_RATE = 60; | |
final int SECONDS_TO_CAPTURE = 60; | |
int videoFramesCaptured = 0; | |
boolean recordVideo = false; | |
if (recordVideo){ | |
saveFrame("export/####-video.tga"); | |
if (videoFramesCaptured > VIDEO_FRAME_RATE * SECONDS_TO_CAPTURE){ | |
recordVideo = false; | |
} |
View processing:perspective
float fov = PI/3; | |
float nearClip = 1; | |
float farClip = 100000; | |
float aspect; | |
// void setup() | |
aspect = float(width)/float(height); | |
// void draw() |
View Terminal:git:exportbranches
for branch in $(git for-each-ref --format='%(refname:short)' refs/heads); | |
do git archive --format zip --output <outputDirectory>/${branch}.zip $branch; | |
done |
View index.html
<html> | |
<head> | |
<script language="javascript" type="text/javascript" src="libraries/p5.js"></script> | |
<script type='text/javascript' src='libraries/p5.dom.js'></script> | |
<script type='text/javascript' src='libraries/sylvester.js'></script> | |
<style> | |
/* http://meyerweb.com/eric/tools/css/reset/ |
NewerOlder