Skip to content

Instantly share code, notes, and snippets.

Code it!

Alex Kanunnikov lifeart

Code it!
Block or report user

Report or block lifeart

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
lifeart /
Last active Jun 13, 2018
Ember relationships rollback
const { Model, belongsTo, hasMany } = DS;
import { alias } from '@ember/object/computed';
import RollbackMixin from '../../mixins/rollbackable';

export default Model.extend(RollbackMixin, {
    rollabackable: computed(function(){
        return {
            hasMany: ['items', 'users'],
pioh / core.scss
Last active Feb 22, 2018
webpack scss config
View core.scss
@import '~react-select/dist/react-select.css';
* {
padding: 0;
margin: 0;
box-sizing: border-box;
html {
font-size: 13px;
caseywatts / 0
Last active Jun 1, 2018
d3 & c3 npm shim to es6 module for Ember
View 0
Rich-Harris /
Last active Jan 26, 2020
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

View TBezierInterpolation.cpp
#include <vector>
#include <iostream>
#include <cmath>
using namespace std;
#define EPSILON 1.0e-5
#define RESOLUTION 32
class Point2D
listochkin / Ссылки-JSunderhood
Created May 31, 2015
Неделя jsunderhood. Все ссылки, которыми я с вами поделился
View Ссылки-JSunderhood
Неделя jsunderhood. Все ссылки, которыми я с вами поделился
goncalossilva /
Last active Jan 21, 2020
Handy scripts to encode mp4, webm and gif using ffmpeg (2.6 or above). Audio is discarded on all of these!
# sh input.mp4 output.gif
# Optionally accepts width / height (one or both).
if [ ! -z $3 ]; then
if [ ! -z $4 ]; then
revolunet / browserify.js
Last active Jan 9, 2018
Sample split grunt-browserify config for vendors + applications files with react
View browserify.js
var externalModules = [
module.exports = {
vendors: {
listochkin /
Last active Nov 14, 2017
Ember.js Video Collection
  1. Официальные видео:
  2. Toran Billups записал очень хорошие базовые видео:
  3. Архитектура:
michiel / cors-nginx.conf
Created Jul 5, 2011
Wide-open CORS config for nginx
View cors-nginx.conf
# Wide-open CORS config for nginx
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
You can’t perform that action at this time.