Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
shape-rendering: crispEdges;
}
.day {
<?php
class MyRecursiveFilterIterator extends RecursiveFilterIterator {
public function accept() {
return
$this->current()->isDir() &&
strpos($this->current()->getFilename(), '.') === false;
}
}
<?php
function get_patches($dir) {
global $c, $inc, $offset_left, $offset_top;
$inc = 0;
$dir_array = [];
$path = realpath($dir);
<?php
function get_patches($dir){
global $c, $inc, $offset_left, $offset_top;
$dir_array = [];
$inc = 0;
$path = realpath($dir);
//$dirs = new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS);
$dirs = new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS);
@quilime
quilime / DARK.dvtcolortheme
Created January 22, 2015 03:38
monochrome xcode theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
@quilime
quilime / tsws
Last active January 15, 2022 07:31 — forked from dfletcher/tsws
Totally simple web server using Bash and netcat (nc)
#!/bin/bash
# --------------------------------
# Totally Simple Web Server (TSWS)
# --------------------------------
#
# (c) 2015 Dave Fletcher
# All Rights Reserved
#
# This is free and unencumbered software released into the public domain.
@quilime
quilime / quasi.glsl
Last active November 21, 2015 22:33
// http://glslsandbox.com/e#29006.1
#ifdef GL_ES
precision mediump float;
#endif
// modified by @hintz
// further modded by @quilime
# .SyncIgnore is a UTF-8 encoded .txt file that helps you specify single files, paths and rules
# for ignoring during the synchronization job. It supports "?" and "*" wildcard symbols.
#
#
# OS generated files #
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
# StreamsList is a UTF-8 encoded .txt file that helps you specify alternate streams,
# xattrs and resource forks white list. It supports "?" and "*" wildcard symbols.
#
#
com.apple.FinderInfo
com.apple.metadata:_kMDItemUserTags
com.apple.metadata:kMDItemFinderComment