Skip to content

Instantly share code, notes, and snippets.


Kirill Gusyatin kikill95

View GitHub Profile
MadLittleMods / streaming-endpoint-with-progress.js
Last active Sep 25, 2018
Barebones Express app for essentially multiple responses from one request (progress)
View streaming-endpoint-with-progress.js
const express = require('express');
const logger = require('morgan');
const app = express();
app.get('/', function (req, res) {
View angular-ios9-uiwebview.patch.js
* ================== angular-ios9-uiwebview.patch.js v1.1.1 ==================
* This patch works around iOS9 UIWebView regression that causes infinite digest
* errors in Angular.
* The patch can be applied to Angular 1.2.0 1.4.5. Newer versions of Angular
* have the workaround baked in.
* To apply this patch load/bundle this file with your application and add a
tmarshall / aws-sns-example.js
Last active Jun 12, 2022
aws-sdk sns example, in Node.js
View aws-sns-example.js
var AWS = require('aws-sdk');
accessKeyId: '{AWS_KEY}',
secretAccessKey: '{AWS_SECRET}',
region: '{SNS_REGION}'
var sns = new AWS.SNS();
james2doyle / scrollTo.js
Last active Jun 8, 2022
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
View scrollTo.js
// easing functions
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
return -c/2 * (t*(t-2) - 1) + b;
galulex /
Last active Feb 28, 2021
Ruby On Rails Ubuntu 18.04 install

Developer libs

mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...

sudo apt-get install libxslt1-dev libxml2-dev build-essential patch libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs rar


sudo apt-add-repository ppa:brightbox/ruby-ng

sudo apt-get update

paulirish / rAF.js
Last active May 12, 2022
requestAnimationFrame polyfill
View rAF.js
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];