title: clmpr\r
date: may 24 2011\r
tags: code web\r
-gallery: full\r
+category: code\r
layout: post\r
---\r
\r
clmpr (clumper) is an open-source multi-user bookmarking engine, inspired by the original del.icio.us (RIP)\r
\r
-demo: <a href="http://clmpr.com">clmpr.com</a> \r
+demo: <a href="http://clmpr.com">clmpr.com</a>\r
source: <a href="http://github.com/quilime/clmpr">http://github.com/quilime/clmpr</a>\r
\r
<img src="http://media.quilime.com/files-bak/img/clmpr.png" />\r
title: PHP File Browser Scripts
date: 2011-06-28
layout: post
+category: code
---
These scripts offer some handy features for browsing files/folders on a webserver.
<img src="http://media.quilime.com/Directory-Lister.png" />
-## MediaBrowser
+## MediaBrowser
A index script that generates thumbnail gallery for images and displays READMEs. This is an experiment and WIP.
---
title: C++/Cinder TouchDesigner TOP
date: 2013-09-18
+category: code
---
<iframe src="//player.vimeo.com/video/75031641?byline=0&color=ffffff" width="600" height="337" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
---
title: Animation w/Processing Workshop
-date: 2013-10-12
+date: 2013-10-12
tags: processing code workshop
+category: code
---
<a href="https://github.com/quilime/processing-animation-workshop">source on github</a>
---
title: Grasshopper <-> TouchDesigner Geometry Bridge
date: 2014-04-27
+category: code
---

Grasshopper <-> TouchDesigner Bridge for Polygon Mesh Geometry
Source on [Github](https://github.com/quilime/gh-td)
-(c) 2013-2015
+(c) 2013-2015
[Download .zip](https://github.com/quilime/gh-td/archive/master.zip)
gh/receiver.gh

-
+
date: 2007-12-12
title: MEL Notepad
tags: mel maya
+category: snippet
---
mel notepad with various code snippets
date: 2009-04-23
tags: bash script slice image imagemagick
lang: bash
+category: snippet
layout: post
---
convert $IMAGE -crop ${CROP_W}x${CROP_H}+${CROP_X}+${CROP_Y} [${x},${y}]_$IMAGE
done
done
-
+
fi
```
## To Use
-navigate to slice.sh in your terminal and do
+navigate to slice.sh in your terminal and do
```prettyprint
chmod +x slice.sh
./slice.sh Sunset.jpg 800 600 16 16
```
-replace `Sunset.jpg` with your image name.
+replace `Sunset.jpg` with your image name.
params: `Image Height, Image Width, Vertical Divisions, Horizontal Divisions`
<br />
tags: maya mel sphere intersection
lang: mel
layout: post
+category: snippet
---
<p>
Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis.
<h2>
mel source
</h2>
-```prettyprint
+```prettyprint
global proc intersectSphereY()
{
print(". . . . . go go go\n");
int $iter = 50;
float $start[3] = {0, -0.5, 0};
float $limit[3] = {0, 5.0, 0};
- $mesh = "test_mesh";
+ $mesh = "test_mesh";
$tmpCN = "cpom";
-
+
$obj = "rod1";
float $radius = 0.5;
float $curPos[3] = {0, 0, 0};
for ($i = 0; $i <= $iter; $i++)
- {
+ {
$mesh = "test_mesh";
$shape = `listRelatives -shapes $mesh`;
createNode -n $tmpCN closestPointOnMesh;
connectAttr -f ($shape[0] + ".outMesh") ($tmpCN + ".inMesh");
setAttr ($tmpCN + ".inPosition") $curPos[0] $curPos[1] $curPos[2];
-
+
$cpom = `getAttr ($tmpCN + ".position")`;
-
+
if ( pointDist($curPos, $cpom) <= $radius ) {
return ". . bonk\n";
}
global proc float pointDist(float $p1[], float $p2[])
{
- return sqrt(
- (($p1[0] - $p2[0]) * ($p1[0] - $p2[0])) +
- (($p1[1] - $p2[1]) * ($p1[1] - $p2[1])) +
+ return sqrt(
+ (($p1[0] - $p2[0]) * ($p1[0] - $p2[0])) +
+ (($p1[1] - $p2[1]) * ($p1[1] - $p2[1])) +
(($p1[2] - $p2[2]) * ($p1[2] - $p2[2])));
}
tags: bash terminal rename
date: 2010-01-11
layout: post
+category: snippet
---
<pre class="prettyprint">
ls | nl -nrz -w2 | while read a b; do mv "$b" filename.$a.png; done;
lang: bash
date: 2010-02-07
layout: post
+category: snippet
---
<pre class="prettyprint lang-bash">#!/bin/bash
# Shell script to create file named after the current date
title: "Rewrite URL: Replace Double Slashes With Single Slash"
tags: htaccess apache
layout: post
+category: snippet
---
<pre>
date: 2010-07-07
hidden: true
layout: post
+category: snippet
---
*.bat file structure
C:\Progra~1\Autodesk\Maya2010\bin\render -s 1 -e 30 -im output_image2 anotherscene.ma
</pre>
-The path to render.exe must be the 8.3 character DOS version.
+The path to render.exe must be the 8.3 character DOS version.
To execute the file, save as a *.bat and double click it in Explorer.
<!--more-->
// Render Flags
usage: Render <options> <filename>
where <filename> is a Maya ASCII or a Maya Binary file.
-
+
startFrame -s <float> starting frame for an animation sequence
title: resize multiple images
date: 2010-07-11
layout: post
+category: snippet
---
<pre class="prettyprint lang-bash">for k in $(ls *.JPG); do convert $k -resize 50% -quality 80 r_$k; done</pre>
title: "create bootable iso from unix/osx terminal"
date: july 7 2011
layout: post
+category: snippet
---
1. <code class="prettyprint">diskutil list</code><br />
date: 2013-04-19
tags: python code
layout: post
+category: snippet
---
```prettyprint-python
---
title: Generate Semitones
date: 2013-09-16
+category: snippet
---
```prettyprint
print int(0.5 + 1000 * $m ** $s-1000), "\n";
}
-prints:
+prints:
semitone - fine
-0 - 0
-1 - 59
-2 - 122
-3 - 189
-4 - 260
-5 - 335
-6 - 414
-7 - 498
-8 - 587
-9 - 682
-10 - 782
-11 - 888
+0 - 0
+1 - 59
+2 - 122
+3 - 189
+4 - 260
+5 - 335
+6 - 414
+7 - 498
+8 - 587
+9 - 682
+10 - 782
+11 - 888
12 - 1000
```
-[gist](https://gist.github.com/quilime/59fc3af7c5f30ca2399f#file-semitones-pl)
+[gist](https://gist.github.com/quilime/59fc3af7c5f30ca2399f#file-semitones-pl)
---
date: 2014-06-20
title: creating gif from mov with ffmpeg and gifsicle
+category: snippet
---
<pre class="prettyprint" >
ffmpeg -i in.mov -s 640x360 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=6 > out.gif
date: 2011-02-02
title: osx bash profile
layout: post
+category: term
---
<pre class="prettyprint" >
title: linux bash profile
date: march 11 2011
layout: post
+category: term
---
<pre class="prettyprint">
alias ls='ls --color'
---
layout: post
title: "create ssh keys"
-categories: c
date: 2011-04-16
+category: term
---
<pre class="prettyprint">
ssh-keygen -t rsa
date: Wed, april 27 2011
tags: windows cmd console
layout: post
+category: term
---
<pre class="prettyprint">
copy /b file1+ file2 output
date: "Tue May 10 21:03:45 PDT 2011"
tags: osx
layout: post
+category: term
---
via Terminal
---
title: "Terminal Emulator on Windows via Cygwin"
date: august 11 2011
+category: term
---
How to install cygwin on windows:
title: command history
date: "Mon Sep 19 19:39:51 PDT 2011"
layout: post
+category: term
---
`history | awk {'print $2'} | sort | uniq -c | sort -k1 -rn | head`
date: "Wed, Nov 9 2011 18:40:26, IST"
tags: audio osx cli
layout: post
+category: term
---
Since there is no equivilent to /dev/dsp or /dev/audio on OSX, you need to install an alternative like <a href="http://sox.sourceforge.net/">sox</a>.
date: "mon, nov 14 2011"
tags: bash shell python json xml osx
layout: post
+category: term
---
Working with various interfaces that output json or xml results in lots of situations where you have a single-line, unformatted output. Here's a quick way to format json, xml from the CLI.
date: 2012-01-02
tags: arch linux windows installation tutorial
layout: post
+category: term
---
Documentation of the process of installing [archlinux](http://www.archlinux.org/) and Windows 7 in a dual-boot configuration.
---
layout: index
---
-
+{% comment %}
<!-- Posts -->
-<div class="allposts">
+<!-- <div class="allposts">
{% for post in site.posts %}
<div class="entry">
<h1><a href="{{ site.url }}{{ post.url }}">— {{ post.title }}</a></h1>
</div>
{% endfor %}
+</div> -->
+{% endcomment %}
+
+<div class="allposts">
+
+<h2>code</h2>
+<br />
+{% for post in site.categories.code %}
+<div class="entry">
+ <h1><a href="{{ site.url }}{{ post.url }}">— {{ post.title }} <span style="font-weight:normal; color:#393939;">{{ post.date | date: "%Y-%m-%d" }}</span></a></h1>
+</div>
+{% endfor %}
+
+<br />
+<br />
+
+<h2>snippet</h2>
+<br />
+{% for post in site.categories.snippet %}
+<div class="entry">
+ <h1><a href="{{ site.url }}{{ post.url }}">— {{ post.title }} <span style="font-weight:normal; color:#393939;">{{ post.date | date: "%Y-%m-%d" }}</span></a></h1>
+</div>
+{% endfor %}
+
+<br />
+<br />
+
+<h2>term</h2>
+<br />
+{% for post in site.categories.term %}
+<div class="entry">
+ <h1><a href="{{ site.url }}{{ post.url }}">— {{ post.title }} <span style="font-weight:normal; color:#393939;">{{ post.date | date: "%Y-%m-%d" }}</span></a></h1>
</div>
+{% endfor %}
+
+</div>
+
}
h1, h2, h3, h4, h5, h6 {
color:#666;
- font-size:1.5em;
+ font-size:1.4em;
letter-spacing:0.1em;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
}
h2, h3, h4, h5, h6 {
- font-size:1.1em;
+ font-size:1.3em;
}
h3, h4, h5, h6 {
font-size:1.0em;