This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.out = this.out || {}; | |
this.out.js = (function (exports) { | |
'use strict'; | |
const minMargin = 1; | |
const sizes = [15, 20, 25 , 50, 40, 130]; | |
const stepPi = (1 / 16) * Math.PI; | |
// this ensure we go through a wide range of values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
"use strict"; | |
var _$0 = this; | |
var _2 = function (i) { | |
return _$0.Math.cos(i * 0.19634954084936207); | |
}; | |
var _5 = function (value, min, max) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Fiber = any; | |
type ReactNodeList = any; | |
type ExpirationTime = number; | |
type Batch = { | |
_defer: boolean, | |
_expirationTime: ExpirationTime, | |
_onComplete: () => mixed, | |
_next: Batch | null, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { HostConfig, Reconciler } from 'react-fiber-types'; | |
import type { ReactNodeList } from 'react-fiber-types/ReactTypes'; | |
import DOMPropertyOperations from './DOMPropertyOperations'; | |
import type { | |
Props, | |
Container, | |
Instance, | |
TextInstance, | |
OpaqueHandle, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
unbind '"' | |
unbind % | |
set-option -g default-command "reattach-to-user-namespace -l bash" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function extractDomain(url) { | |
return url.match(/(www\.)?([a-z0-9]+\.)+[a-z]{2,}/)[0]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
html, body { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
font-size: 100%; | |
background-color: #000000; | |
color: green; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function scrollTo(Y, duration, easingFunction, callback) { | |
var start = Date.now(), | |
elem = document.documentElement.scrollTop?document.documentElement:document.body, | |
from = elem.scrollTop; | |
if(from === Y) { | |
callback(); | |
return; /* Prevent scrolling to the Y point if already there */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof escapeHtmlEntities == 'undefined') { | |
escapeHtmlEntities = function (text) { | |
return text.replace(/[\u00A0-\u2666<>\&]/g, function(c) { | |
return '&' + | |
(escapeHtmlEntities.entityTable[c.charCodeAt(0)] || '#'+c.charCodeAt(0)) + ';'; | |
}); | |
}; | |
// all HTML4 entities as defined here: http://www.w3.org/TR/html4/sgml/entities.html | |
// added: amp, lt, gt, quot and apos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#assume that your sources are in /src | |
cd /src | |
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz | |
#download all patches | |
for i in $(seq -f "%03g" 0 25); do | |
wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; | |
done |