Skip to content

Instantly share code, notes, and snippets.

View creotiv's full-sized avatar

Andrey Nikishaev creotiv

View GitHub Profile
@creotiv
creotiv / easing_functions
Last active February 12, 2025 09:17
Easing functions
/*
Easing Equations v1.5
May 1, 2003
(c) 2003 Robert Penner, all rights reserved.
This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html.
These tweening functions provide different flavors of
math-based motion under a consistent API.
Types of easing:
@creotiv
creotiv / protocol.py
Last active August 29, 2015 14:20
Protocol Interface
class ProtocolException(Exception):
pass
class ProtocolParam(object):
def __init__(self, check_type):
self.check_type = check_type
def is_param(self, check_type=None):
if not check_type:
@creotiv
creotiv / record & playback
Created June 18, 2015 13:57
record & playback
// Audio requirements
import android.media.AudioTrack;
import android.media.AudioManager;
import android.media.AudioFormat;
class AudioThread extends Thread {
private boolean _audioRun = false;
private int _reqWrite = 0;
private int _ackWrite = 0;
private boolean _init = true;
@creotiv
creotiv / get_changes_for_tag.sh
Last active August 29, 2015 14:26
Creating change log by git tags
#!/bin/bash
# Author:Andrey Nikishaev
echo "CHANGELOG"
echo ----------------------
git for-each-ref --sort='*authordate' --format='%(tag)' refs/tags |tac |grep -v '^$' | while read TAG ; do
echo
if [ $NEXT ];then
echo [$NEXT]
else
echo "[Current]"
@creotiv
creotiv / gulpfile.js
Created October 14, 2015 09:39 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@creotiv
creotiv / frontend.md
Last active April 7, 2016 15:42
FrontEnd developer learnig path

FrontEnd developer learnig path

JavaScript

Deployment

  • npm - package manager
  • grunt - task manager
  • gulp - task manager
@creotiv
creotiv / Arduino.md
Last active February 16, 2023 06:02
Arduino learning path

Books

@creotiv
creotiv / Python.md
Created November 10, 2015 17:24
Python Learning Path
/* DEPRECATED
getComponentState(id) {}
setComponentState(id, state) {}
onComponentStateUpdated(id, state) {}
*/
constructor(StateStore){
// this.name - Name of the component. Should be unique, better to link to parent view name.
// For example for jobDetailView it will be "JobsTableJobDetailView"
// state