Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Michael Chung ArEnSc

💭
I may be slow to respond.
  • Databites
  • Toronto
Block or report user

Report or block ArEnSc

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
@ArEnSc
ArEnSc / login.swift
Last active Feb 24, 2018
login.swift
View 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()
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

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

View sosick.js
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({
@ArEnSc
ArEnSc / request.js
Created May 7, 2016
Better way to code your requests simar
View request.js
/**
optz
{
method: String,
url: String,
params: String | Object,
headers: Object
}
**/
const request = (opts) => {
View react-native-eslintrc
{
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true
},
"env": {
"es6": true,
"jasmine": true,
View ThisChange.m
- (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:
*
View fixed_beautification.js
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>
View broken_beautification.js
class HelloWorld extends Component {
render() {
return ( < View style = {
styles.container
} >
< Text style = {
styles.welcome
} >
Welcome to React Native!
< /Text> < Text style = {
@ArEnSc
ArEnSc / gist:5185dfdf4e04bd3d988d
Created May 17, 2014
Physics problem? or understanding of physics + draggable problem ?
View gist:5185dfdf4e04bd3d988d
// 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');
You can’t perform that action at this time.