This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: btsync | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Multi-user daemonized version of btsync. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://jsperf.com/new-vs-object-create-including-polyfill | |
if (typeof Object.create !== 'function') { | |
Object.create = function(o, props) { | |
function F() {} | |
F.prototype = o; | |
if (typeof(props) === "object") { | |
for (prop in props) { | |
if (props.hasOwnProperty((prop))) { | |
F[prop] = props[prop]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gifAnimation.*; | |
PFont font; | |
GifMaker gifExport; | |
PImage[] frames; | |
PImage img; | |
void setup() { | |
gifExport = new GifMaker(this, "export.gif"); | |
gifExport.setRepeat(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MultiExporter.jsx | |
// Version 0.1 | |
// Version 0.2 Adds PNG and EPS exports | |
// Version 0.3 Adds support for exporting at different resolutions | |
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
// Version 0.5 Fixed cropping issues | |
// Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
// | |
// Copyright 2013 Tom Byrne | |
// Comments or suggestions to tom@tbyrne.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
continue | |
dir=/var/www/downloads | |
file-allocation=falloc | |
max-connection-per-server=4 | |
max-concurrent-downloads=2 | |
max-overall-download-limit=0 | |
min-split-size=25M | |
rpc-allow-origin-all=true | |
rpc-secret=YouShouldChangeThis | |
input-file=/var/tmp/aria2c.session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-------------------------------------------------------------------------------------------------------*/ | |
/* | |
■Name tr_AtFI | |
■ver0.1 | |
■20090211 | |
■Author Matsuda(Expresson) &Terraon(Script&Icon) | |
□選択レイヤとその”一つ下”のレイヤの重複部分frフェードインを行います。 | |
レイヤーコメントも追加します。また、既に透明度にエクスプレッションが適用されている場合は効果を”リセット”します。 | |
■All Rights @ Free | |
拙いコードですが引用も転用もご自由に。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Parent | |
*/ | |
function Shape(x, y) { | |
this.x = x; | |
this.y = y; | |
} | |
Shape.prototype.constructor = Shape; | |
Shape.prototype.pos = function() { | |
return [this.x, this.y]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name dribbble show big picture | |
// @namespace dribbble | |
// @include http*://*dribbble.com* | |
// @version 1 | |
// ==/UserScript== | |
(function(){ | |
var callback = function(e){ | |
e = e.target ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numsegments = Math.max(2, Math.floor(effect("Segments")("Slider"))); | |
totallength = Math.max(0.001, effect("Line Length")("Slider")); | |
seglength = totallength / numsegments; | |
sepdist = Math.max(0.001, effect("Seperation Distance")("Slider") * 0.5) / (Math.PI * 2); | |
roll = clamp(effect("Roll")("Slider"), 0, 1); | |
pos = [0, 0]; | |
cv = []; | |
firsttheta = Math.sqrt(numsegments * seglength / sepdist); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
パスを延長 Copyright (c) koji sakai | |
https://gist.github.com/S4K4K0/62896e92287b40fded0d7f1614082d22 | |
プレビュー部分やUIは以下のサンプルを元にしています | |
https://qiita.com/shspage/items/441ccf61394d9c504beb | |
* HOW TO USE | |
選択して実行するとスライダーが表示され、始端か終端のセグメントに対して指定した比率でBezier曲線のパラメータが延長されます | |
(サイズや長さがそのままk倍になるわけではありません) |
OlderNewer