Skip to content

Instantly share code, notes, and snippets.

View joshskeen's full-sized avatar
💻
☕️

Josh Skeen joshskeen

💻
☕️
View GitHub Profile
fun main() {
data class Colors(
val color: Int,
val complimentary: Int,
val analogous: List<Int>,
val tetradic: List<Int>
) {
val colorNames = mapOf(
0 to "yellow", 1 to "cad-yellow", 2 to "orange",
3 to "cad-red", 4 to "red", 5 to "acra-violet",
@joshskeen
joshskeen / hue-interpolate.rb
Last active September 17, 2020 05:05
hue-interpolate.rb
require 'date'
# the keyframe colors, specified in rgb for certain hours of the day (0 - 24. 0 & 24 values should be the same.)
$keyframes = {
0 => [54, 46, 44],
4 => [204, 59, 22],
12 => [22, 31, 14],
24 => [54, 46, 44]
}
# the size of the step to use for the interpolation.
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
#
set-option -g default-command "reattach-to-user-namespace -l zsh"
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
set nocompatible
filetype on
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
" original repos on github
Plugin 'airblade/vim-gitgutter'
export ZSH=/Users/joshskeen/.oh-my-zsh
# Path to your oh-my-zsh installation.
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="maran"
# Uncomment the following line to use case-sensitive completion.
#include <stdio.h>
#include <stdio.h>
#include <soundio/soundio.h>
#include <stdlib.h>
#include <string.h>
#include <portaudio.h>
#define NUM_SECONDS (5)
#define SAMPLE_RATE (44100)
#define FRAMES_PER_BUFFER (64)
val type = hitTarget.run {
when {
isImage && isLink -> “image+link”
isImage -> “image”
else -> “link”
}
}
@joshskeen
joshskeen / activity_new_character.xml
Last active April 10, 2018 23:11
activity_new_character.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
tools:context=".NewCharacterActivity">
<LinearLayout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
tools:context=".NewCharacterActivity">
<LinearLayout