Skip to content

Instantly share code, notes, and snippets.

View ArEnSc's full-sized avatar
💭
I may be slow to respond.

ArEnSc ArEnSc

💭
I may be slow to respond.
  • Databites
  • Toronto
View GitHub Profile
@ArEnSc
ArEnSc / gist:5185dfdf4e04bd3d988d
Created May 17, 2014 17:21
Physics problem? or understanding of physics + draggable problem ?
// import dependencies
// Core
var Engine = require('famous/core/Engine');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var Surface = require('famous/core/Surface');
var Scene = require("famous/core/Scene");
var View = require('famous/core/View');
var Draggable = require('famous/modifiers/Draggable');
var EventHandler = require('famous/core/EventHandler');
@ArEnSc
ArEnSc / broken_beautification.js
Created April 29, 2016 17:33
broken beautification
class HelloWorld extends Component {
render() {
return ( < View style = {
styles.container
} >
< Text style = {
styles.welcome
} >
Welcome to React Native!
< /Text> < Text style = {
@ArEnSc
ArEnSc / fixed_beautification.js
Created April 29, 2016 19:00
fixed beautification
class HelloWorld extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native !
</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js
</Text>
@ArEnSc
ArEnSc / ThisChange.m
Last active May 2, 2016 14:36
ChangeThis
- (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge
{
NSURL *sourceURL;
/**
* Loading JavaScript code - uncomment the one you want.
*
* OPTION 1
* Load from development server. Start the server from the repository root:
*
@ArEnSc
ArEnSc / react-native-eslintrc
Created May 2, 2016 15:38
react-native-eslintrc
{
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true
},
"env": {
"es6": true,
"jasmine": true,
@ArEnSc
ArEnSc / request.js
Created May 7, 2016 23:15
Better way to code your requests simar
/**
optz
{
method: String,
url: String,
params: String | Object,
headers: Object
}
**/
const request = (opts) => {
request = (opts) => {
return new Promise((resolve, reject) => {
let xhr = new XMLHttpRequest();
let params = opts.params;
xhr.onload = function () {
if (xhr.status >= 200 && xhr.status < 300) {
resolve(xhr.response);
} else {
reject({

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@ArEnSc
ArEnSc / login.swift
Last active February 24, 2018 22:27
login.swift
//: Playground - noun: a place where people can play
import UIKit
class ListViewController: UIViewController, UITextFieldDelegate {
let logo:UIImage = UIImage()
let username:UITextField = UITextField()
let password:UITextField = UITextField()
let submitButton:UIButton = UIButton()