Skip to content

Instantly share code, notes, and snippets.

@zikes
zikes / index.html
Created January 21, 2013 21:06
Countdown
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Countdown</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>
var Time = {};
Time.second = 1000;
Time.minute = Time.second * 60;
@zikes
zikes / .block
Last active November 22, 2016 19:08
Gocagne Logotype
license: mit
@zikes
zikes / reclaimWindows10.ps1
Created January 8, 2017 07:48 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
#!/usr/bin/env bash
usage() {
cat <<HERE
usage: git make-remote <project-name>
or: git make-remote <path/to/project-name>
HERE
}
GIT_SERVER="git.zikes.me"

Keybase proof

I hereby claim:

  • I am zikes on github.
  • I am zikes (https://keybase.io/zikes) on keybase.
  • I have a public key ASBSugh561xaMB16W6xH6UlQN9i41K4_UzhT2G5_3JJD_Qo

To claim this, I am signing this object:

@zikes
zikes / .vimrc
Created May 31, 2017 23:14
vim files
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@zikes
zikes / index.html
Created December 13, 2012 19:38
Exponential Regression Line Using numbers.js & d3.js
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Exponential Regression Line Using numbers.js & d3.js</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="numbers.js"></script>
<style>
body {font: 10px sans-serif;}
<!DOCTYPE html>
<html>
<head><title>Fizzlefade</title></head>
<body>
<canvas id="framebuffer" width="320" height="200"></canvas>
<script type="text/javascript">
/* Fizzlefade using a Feistel network.
@zikes
zikes / .zshrc
Created July 6, 2018 19:21
Powerlevel9k + Google Play Music Desktop Player Custom Segment
zsh_gpmdp_now_playing(){
local json_file="$HOME/.config/Google Play Music Desktop Player/json_store/playback.json"
local is_playing=$(cat "$json_file" | jq '.playing')
local artist=$(cat "$json_file" | jq -r '.song.artist')
local title=$(cat "$json_file" | jq -r '.song.title')
if [[ "$is_playing" == "true" ]]; then
echo -n "\ufc58 $artist - $title"
fi
}
@zikes
zikes / generate.c
Created March 5, 2019 16:50 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u