Skip to content

Instantly share code, notes, and snippets.

Parker Jones parallaxisjones

Block or report user

Report or block parallaxisjones

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
View node.js PassThrough
const {PassThrough} = require('stream')
const fs = require('fs')

const d = new PassThrough()  

fs.createReadStream('tt2.js').pipe(d)  // can be piped from reaable stream

d.pipe(process.stdout)                 // can pipe to writable stream 
d.on('data', console.log)              // also like readable
View docready.js
document.addEventListener("DOMContentLoaded", function(){
// Handler when the DOM is fully loaded
parallaxisjones / script match
Created Aug 28, 2018 — forked from beck24/script match
preg_match_all <script></script> match
View script match
$html = <<<HTML
<script src=""></script>
parallaxisjones / customevent-polyfill.js
Created Aug 20, 2018 — forked from gt3/customevent-polyfill.js
custom event polyfill for IE 11 (>= 9 really)
View customevent-polyfill.js
// source:
;(function() {
if (typeof window.CustomEvent === "function") return false
function CustomEvent(event, params) {
params = params || { bubbles: false, cancelable: false, detail: undefined }
var evt = document.createEvent("CustomEvent")
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail)
return evt
parallaxisjones /
Created Jul 17, 2018 — forked from remarkablemark/
Classes - ES5 vs ES6

JavaScript Classes - ES5 vs ES6

An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.



Keybase proof

I hereby claim:

  • I am parallaxisjones on github.
  • I am parallaxisjones ( on keybase.
  • I have a public key ASCuqWp2LShe3x9SUrSY-mO_BJ4mXHKUsTBdfD2eyLfYjAo

To claim this, I am signing this object:

parallaxisjones / .eslintrc.js
Created Jun 26, 2018 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
View .eslintrc.js
"env": {
"browser": true,
"node": true,
"es6": true
"plugins": ["react"],
"ecmaFeatures": {
View untrusted-lvl1-solution.js
* cellBlockA.js *
* Good morning, Dr. Eval.
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
parallaxisjones / wpcampus-functionality.php
Created Apr 21, 2018 — forked from mor10/wpcampus-functionality.php
Create custom taxonomies (hierarchical and non-hierarchical) in a WordPress plugin
View wpcampus-functionality.php
// Create two taxonomies, Class and Year, for the post type "Lecture"
function wpcampuscpt_lecture_taxonomies() {
// Add Class taxonomy, make it hierarchical (like categories)
$labels = array(
'name' => _x( 'Classs', 'taxonomy general name' ),
'singular_name' => _x( 'Class', 'taxonomy singular name' ),
'search_items' => __( 'Search Classes' ),
'all_items' => __( 'All Classes' ),
'parent_item' => __( 'Parent Class' ),
View gist:b97144652405af078c35b40228b6e992
Each Jenkins page has a REST API hyperlink at the bottom, this is because each page has its own endpoint.
Click 'Show API Token'
78e21f82a9e137614fef5b9593bcf827 = API Token
curl -s -u goll:78e21f82a9e137614fef5b9593bcf827 http://localhost:8080/crumbIssuer/api/json
You can’t perform that action at this time.