TEST test More examples of the d3.scale.cubehelix plugin, replicating four Python cubehelix examples. In the last two examples, a polylinear scale creates a diverging cubehelix color ramp, and an approximate recreation of Matteo Niccoli’s perceptual rainbow.
This file has been truncated, but you can view the full file.
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
[ 'activity/_modules/buyer-onboarding.js: (wrap-iife) Move the invocation into the parens that contain the function. 1:0', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) logEvent was used before it was defined 45:12', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) init was used before it was defined 49:4', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) showOnboardingOverlay was used before it was defined 60:70', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) showOnboardingOverlay was used before it was defined 80:12', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) logEvent was used before it was defined 85:8', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) emptyAndHideTastemakers was used before it was defined 88:8', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) showBucketsStep was used before it was defined 89:8', | |
'activity/_modules/buyer-onboarding.js: (no-use-before-define) setPr |
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
diff --git b/lib/utility.js a/lib/utility.js | |
new file mode 100644 | |
index 0000000..91a03ff | |
--- /dev/null | |
+++ a/lib/utility.js | |
@@ -0,0 +1,72 @@ | |
+/*jslint node: true */ | |
+'use strict'; | |
+ | |
+var uniqify_array = function(arr) { |
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
@namespace svg "http://www.w3.org/2000/svg"; | |
@charset "UTF-8"; /* Set the encoding of the style sheet to Unicode UTF-8 */ | |
@charset 'iso-8859-15'; /* Set the encoding of the style sheet to Latin-9 (Western European languages, with euro sign) */ | |
a { | |
margin : auto; | |
padding : 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
'use strict'; | |
var fs = require('fs'); | |
var path = require('path'); | |
var shell = require('shelljs'); | |
var CWD = path.resolve( process.cwd() ); | |
var dir_test = path.join(CWD, 'test', 'cases'); | |
var result = []; |
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
$str = "あAいうえおaかAきくけこaさAしすせそ"; | |
$pattern = "a"; | |
mb_ereg_search_init($str, $pattern, "i"); | |
while (mb_ereg_search()) { | |
print_r( [mb_ereg_search_getpos(), mb_ereg_search_getregs()] ); | |
} |
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
http://www.gnu.org/software/emacs/manual/html_node/elisp/Displaying-Messages.html | |
(message-box "foobar") | |
;; to set alpha | |
(set-frame-parameter nil 'alpha '(100 100)) | |
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
#! /usr/bin/env python | |
import argparse | |
parser = argparse.ArgumentParser( description='w/e' ) | |
parser.add_argument( '-code', type=int, help='exit code' ) | |
args = parser.parse_args() | |
if args.code: |
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 Queue | |
import threading | |
import time | |
import os | |
import random | |
from logger import Logger | |
from config import Config | |
# input queue to be processed by many threads | |
q_in = Queue.Queue(maxsize=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
#! /usr/bin/env python | |
import threading | |
global_var = { 'handler': None, 'sec_wait': 1.0 } | |
def cb_success (): | |
print( 'success!' ) | |
def cb_cancel (): | |
if global_var['sec_wait'] >= 5.0: |