Skip to content

Instantly share code, notes, and snippets.

View sasha240100's full-sized avatar
💭
Working remotely

Alexander Buzin sasha240100

💭
Working remotely
View GitHub Profile

Startup learing articles

  1. Founders Digest #1: Brand community, wiki & AR Smart Glasses - Project for building a brand community recreated encyclopedia for XXI century and User Interface for AR Smart Glasses.
  2. How to build a startup community? - Community building is trending. Nowadays, the demand to grow a startup community is higher than ever. We will tell you how.
  3. A platform to build product communities, Projectium, has announced its IOS launch - Projectium, a platform, enabling early-stage startup founders to build communities around their startups and products, has launched on IOS on July 15. The app is available to download for free in the Apple App Store.
  4. Bring your startup to the next level: top 3 startup challenges analyzed - Founding

Snappy Guidelines

Naming conventions

Variable naming

  • Variable name should reflect the data it contains & the purpose
  • Use camelCase for plain variables that contain data [functions, arrays, objects, ...]. (Incorrect: variable_name, _variable, VariableName)
    • For class use PascalCase.
    • For global constants use UPPER_CASE.
  • Other rules are inherited from https://github.com/airbnb/javascript#variables
function traverse(data) {
return Array.from(data).map(item => {
const name = item.innerText.split('\n')[0].trim();
const skill = {
value: name.toLowerCase(),
label: name
};
if (item.children.length !== 0) {
This file has been truncated, but you can view the full file.
!function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(r,i,function(t){return n[t]}.bind(null,i));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=27)}([function(n,t,e){"use strict";e.r(t),function(n){function r(){}e.d(t,"WebGLRenderTargetCube",function(){return Z
@sasha240100
sasha240100 / fxgl.md
Last active August 9, 2018 08:46
FXGL features list

Problem

WebGL2 is not backwards-compatible with WebGL. You have to use #version 300 es shaders that have different structure (as different GLSL version):

Ex1. WebGL1 GLSL (vertex):

attribute vec3 position;

void main() {
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
/**
* http://applemusic.tumblr.com/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");
}
const VIDEOS = {
video1: 'https://www.youtube.com/embed/LPcBH7kUWhY?rel=0&showinfo=0&autoplay=1',
video2: 'https://www.youtube.com/embed/LPcBH7kUWhY?rel=0&showinfo=0&autoplay=1',
video3: 'https://www.youtube.com/embed/LPcBH7kUWhY?rel=0&showinfo=0&autoplay=1',
video4: 'https://www.youtube.com/embed/LPcBH7kUWhY?rel=0&showinfo=0&autoplay=1',
video5: 'https://www.youtube.com/embed/LPcBH7kUWhY?rel=0&showinfo=0&autoplay=1',
video6: 'https://www.youtube.com/embed/LPcBH7kUWhY?rel=0&showinfo=0&autoplay=1'
};
function insertIframe() {
const SYMBOL_RESOLVER = Symbol('RESOLVER');
const SYMBOL_REJECTOR = Symbol('REJECTOR');
const SYMBOL_STATUS = Symbol('STATUS');
const SYMBOL_VALUE = Symbol('VALUE');
const SYMBOL_SHADOW_RESOLVER = Symbol('SHADOW_RESOLVER');
class Promise2 {
static all(promises) {
const promisesData = [];
let resolvedCount = 0;
function isSquare(a, b) {
return Math.sqrt(a + b) % 1 === 0;
}
function remove_pair(a, b, _pairs) {
_pairs[a] = _pairs[a].filter(s => s !== b);
_pairs[b] = _pairs[b].filter(s => s !== a);
}
const clone = (obj) => JSON.parse(JSON.stringify(obj));
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#