Skip to content

Instantly share code, notes, and snippets.

View ajihyf's full-sized avatar
🎯
Focusing

flyafly ajihyf

🎯
Focusing
  • albb
  • Beijing, China
View GitHub Profile
@ajihyf
ajihyf / immutable_unwrapped.js
Created October 25, 2019 09:51
benchmark-umd-lazy-parsing
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Immutable = factory());
@ajihyf
ajihyf / appify.sh
Created May 10, 2018 14:29 — forked from oubiwann/appify.sh
appify — create the simplest possible Mac app from a shell script (adds an application icon)
#!/usr/bin/env bash
VERSION=4.0.1
SCRIPT=`basename "$0"`
APPNAME="My App"
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns"
OSX_VERSION=`sw_vers -productVersion`
PWD=`pwd`
function usage {
(function() {
'use strict';
if (typeof sigma === 'undefined')
throw 'sigma is not declared';
sigma.utils.pkg('sigma.plugins');
var startPosition;
var WIDTH;