Skip to content

Instantly share code, notes, and snippets.

View baisong's full-sized avatar

Oren Robinson baisong

View GitHub Profile
/**
* @TODO
*
* 1. Add high-level convert() function
* 2. Verify tests using convert() (see symmetrical-test.js)
*/
Date.prototype.getDayNum = function () {
var onejan = new Date(this.getFullYear(), 0, 1);
return Math.ceil((this - onejan) / 86400000);
var compatibilities = {
'0.5.0': {'0.5.0': true, '1.0.0': false, '1.1.0': false},
'1.0.0': {'0.5.0': false, '1.0.0': true, '1.1.0': false},
'1.1.0': {'0.5.0': false, '1.0.0': true, '1.1.0': true}
}
: (Compact IRI)
@context
@id
@value
@language
@type
@container
@list
@set
@reverse

Results

Count Result Hosted URLs JSON strings
155 Pass 21 134
124 Fail 0 124
279 Total 21 258

Types of failure

@baisong
baisong / pml.txt
Last active October 21, 2015 00:31
Package Name Type Status Version
Core Actions (action) Module Not installed 8.0.0-rc1
Core Activity Tracker (tracker) Module Not installed 8.0.0-rc1
Core Aggregator (aggregator) Module Not installed 8.0.0-rc1
Core Automated Cron (automated_cron) Module Not installed 8.0.0-rc1
Core Ban (ban) Module Not installed 8.0.0-rc1
Core Block (block) Module Enabled 8.0.0-rc1
Core Book (book) Module Not installed 8.0.0-rc1
Core Breakpoint (breakpoint) Module Enabled 8.0.0-rc1
Core CKEditor (ckeditor) Module Enabled 8.0.0-rc1
if ('i' !== 'I'.toLowerCase()) {
lowercase = manualLowercase;
uppercase = manualUppercase;
}
var
msie, // holds major version number for IE, or NaN if UA is not IE.
jqLite, // delay binding since jQuery could be loaded after us.
jQuery, // delay binding
@baisong
baisong / ASCII_printable_glyphs.txt
Created July 21, 2015 17:17
A printable list of the first 95 ASCII glyphs. Source: https://en.wikipedia.org/wiki/ASCII
(space)
!
"
#
$
%
&
(
)
@baisong
baisong / crontabs_export.js
Created June 21, 2015 19:00
Export crontabs routines to CSV
/**
* Usage:
* 1. Load the options page for the Crontabs Chrome Extension
* 2. Open console and run this script.
* 3. Copy the CSV output from the terminal to somewhere else
* 4. Yay! Data!
*/
var output = '';
var items = document.getElementsByTagName("input");
for (var i = 0; i < items.length; i++) {
<div id="emotion-sliders"><p style="font-size: 14pt;">Rate your emotions*</p>
<p>๐Ÿ˜<input class="happiness" value="0" type="range" min="0" max="1" step="0.1">๐Ÿ˜€</p>
<p>๐Ÿ˜<input class="sadness" value="0" type="range" min="0" max="1" step="0.1">๐Ÿ˜ข</p>
<p>๐Ÿ˜<input class="anger" value="0" type="range" min="0" max="1" step="0.1">๐Ÿ˜ </p>
<p>๐Ÿ˜<input class="surprise" value="0" type="range" min="0" max="1" step="0.1">๐Ÿ˜ฎ</p>
<p>๐Ÿ˜<input class="disgust" value="0" type="range" min="0" max="1" step="0.1">๐Ÿ˜–</p>
<p>๐Ÿ˜<input class="fear" value="0" type="range" min="0" max="1" step="0.1">๐Ÿ˜จ</p>
</div>
@baisong
baisong / sona-mute.md
Created March 9, 2015 16:06
Toki pona poetry

lon pilin:

  • mi lon taso la
  • mi pilin e sin

tenpo ni:

  • mi wile ala la
  • tenpo li mute la
  • mi ken ali