Skip to content

Instantly share code, notes, and snippets.

Tim Severien timseverien

Block or report user

Report or block timseverien

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View README.md

neural-abstract-art-image-sequence.js can be used to download a sequence of images from Abstract Art by a Neural Network.

Using software like VirtualDub, you can import the image sequence and turn it into a video.

Usage

Pasting the contents of neural-abstract-art-image-sequence.js in the developer tools console of your favourite browser should work.

@timseverien
timseverien / README.md
Last active Jan 3, 2018
Blender k-means fractions
View README.md

K-means Fractions Blender Script

This script splits a mesh in pow(CLUSTER_COUNT, ITERATION_COUNT) fractions in pseudo-random shapes.

  1. Select an object
  2. Distribute an amount of random points (SEED_POINT_COUNT) in the mesh of that object
  3. K-means the points into k clusters (CLUSTER_COUNT)
  4. Find the convex hull of the clusters, creating meshes
  5. Remove original object
  6. Go to step 1
@timseverien
timseverien / particles.json
Last active Jul 5, 2017
ParticleJS mask demo
View particles.json
{
"particles": {
"number": {
"value": 8,
"density": {
"enable": false,
"value_area": 0
}
},
"color": {
@timseverien
timseverien / drunk-simulation.js
Created Jul 11, 2015
Execute this on any page and enjoy the simulation
View drunk-simulation.js
injectStyle(`@keyframes wobble {
0% { transform: translate(0, -10px) }
25% { transform: translate(10px, 0) }
50% { transform: translate(0, 10px) }
75% { transform: translate(-10px, 0) }
}`);
iterateResursive(document.body.children, applyStyle);
function injectStyle(style) {
@timseverien
timseverien / bump
Last active Oct 17, 2019
A bash script to bump versions for both package.json and bower.json, then publishes to npm
View bump
#!/bin/bash
function bump {
output=$(npm version ${release} --no-git-tag-version)
version=${output:1}
search='("version":[[:space:]]*").+(")'
replace="\1${version}\2"
sed -i ".tmp" -E "s/${search}/${replace}/g" "$1"
rm "$1.tmp"
@timseverien
timseverien / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="output"></div>
@timseverien
timseverien / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.1.0-beta)
// ----
// To edit shapes, scroll all the way down to the bottom
//================================
// Functions used for sorting
//================================
@timseverien
timseverien / _circle.scss
Last active Aug 29, 2015
2D renderer in Sass
View _circle.scss
@function circle($obj, $target) {
$color: map-get($obj, color);
$position: map-get($obj, position);
$radius: map-get($obj, radius);
$x: map-get($target, x);
$y: map-get($target, y);
$xd: $x - map-get($position, x);
$yd: $y - map-get($position, y);
@timseverien
timseverien / cipher.js
Created Sep 16, 2014
Substitution ciphering
View cipher.js
/*
* This is the entire source code for the article “Subtitution ciphering in JavaScript”
* http://timseverien.com/articles/153-substitution-ciphering-in-javascript/
*/
(function() {
"use strict";
/**
* Cipher namespace, to store all the cyphers
You can’t perform that action at this time.