Skip to content

Instantly share code, notes, and snippets.

View tjoen's full-sized avatar

Theun Kohlbeck tjoen

View GitHub Profile
@tjoen
tjoen / Lxqog.markdown
Created May 2, 2014 12:07
A Pen by Theun.
@tjoen
tjoen / angular-sample.hta
Last active August 29, 2015 14:26 — forked from tshm/angular-sample.hta
angular integration in hta
<!DOCTYPE html>
<html ng-app="app" id="ng-app">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>my app</title>
<HTA:APPLICATION
APPLICATIONNAME="my app"
SCROLL="yes"
SINGLEINSTANCE="yes" />
@tjoen
tjoen / gist:74950f3e5dbe70fa567d
Created October 15, 2015 22:33 — forked from kyleondata/gist:3440492
Backbone.js and Handlebars.js example
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<script src="jquery-1.7.2.min.js" ></script>
<script src="handlebars-1.0.0.beta.6.js" ></script>
<script src="underscore-min.js" ></script>
<script src="backbone-min.js" ></script>
@tjoen
tjoen / read-write-file.js
Created October 27, 2015 00:14
Read Write to file with javascript
/// write to file
var txtFile = "c:/test.txt";
var file = new File(txtFile);
var str = "My string of text";
file.open("w"); // open file with write access
file.writeln("First line of text");
file.writeln("Second line of text " + str);
file.write(str);
file.close();
Bansai!
* What is Bansai?
This is a script extension for Inkscape.It was inspired by the splendid BonsaiJS library. As well as
my lazy disposition, which does not like "coding" graphics ;)
So in short Bansai lets you select one or elements in Inkscape, and export them to BonsaiJS JSON notation.
* What is supported by this version?
A little, and still a lot :) At the moment I have had time to implement support for
@tjoen
tjoen / README.md
Created April 11, 2016 19:11 — forked from bsergean/README.md
Anti-aliasing (FXAA) with headless-gl and three.js

Aliased

Anti-aliased

Getting the code

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tjoen
tjoen / lazy_jimmy2
Created February 9, 2017 16:59 — forked from zeffii/lazy_jimmy2
# Blender 2.78 (sub 0), Commit date: 2016-09-28 08:41, Hash 0b13b7a
bpy.context.space_data.tree_type = 'SverchCustomTreeType' # Property
bpy.ops.node.new_node_tree() # Operator
bpy.ops.node.add_search(use_transform=True, node_item='9') # Operator
bpy.ops.node.translate_attach_remove_on_cancel(TRANSFORM_OT_translate={"value":(0, 0, 0), "constraint_axis":(False, False, False), "constraint_orientation":'GLOBAL', "mirror":False, "proportional":'DISABLED', "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "gpencil_strokes":False, "texture_space":False, "remove_on_cancel":True, "release_confirm":True}, NODE_OT_attach={}, NODE_OT_insert_offset={}) # Operator
bpy.data.node_groups["NodeTree"].nodes["Random Vector"].count_inner = 28 # Property
bpy.ops.node.add_search(use_transform=True, node_item='130') # Operator
bpy.ops.node.translate_attach_remove_on_cancel(TRANSFORM_OT_translate={"value":(25.
@tjoen
tjoen / gist:7ca002a556c52fbe42d40ac3a1bbad0f
Created October 14, 2017 22:40 — forked from scarlson/playlist.sh
Bash script to create .m3u playlist files for all mp3s in subdirectories
#!/bin/bash
#
# bash script to create playlist files in music subdirectories
#
# Steve Carlson (steve@scarlson.co)
find . -type d |
while read subdir
do
rm -f *.m3u