Skip to content

Instantly share code, notes, and snippets.

🔮
Shading

Eugene OEvgeny

🔮
Shading
Block or report user

Report or block OEvgeny

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
@OEvgeny
OEvgeny / spin.js
Last active Aug 6, 2019
Draw Square Spin
View spin.js
function makeSquereSpin(spinRadius, segmentCount = 10, center = [0, 0]) {
const points = [center];
const segmentLength = spinRadius * 2;
let currentPoint = [...center];
let currentRadius = 0;
for (let i = 0; i < segmentCount; i++) {
const currentLength = segmentLength + currentRadius;
currentRadius += segmentLength;
let deviation;
@OEvgeny
OEvgeny / log.txt
Created Jan 22, 2015
XBMCLauncher #6 logcat
View log.txt
--------- beginning of /dev/log/main
I/installd( 124): installd firing up
--------- beginning of /dev/log/system
E/DrmService( 126): ----------------running drmservice---------------
I/DEBUG ( 118): debuggerd: May 20 2014 12:52:16
View ID.js
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`
View syncthing
#!/bin/sh
### BEGIN INIT INFO
# Provides: syncthing
# 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 syncthing.
@OEvgeny
OEvgeny / aria2
Last active Aug 29, 2015 — forked from jereksel/aria2
View aria2
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# 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: aria2c init script.
You can’t perform that action at this time.