I hereby claim:
- I am ctsstc on github.
- I am cts_ae (https://keybase.io/cts_ae) on keybase.
- I have a public key ASDQOl_GG3phDr6YpOItUyepXklobgEzcpseci1Jr5YwFAo
To claim this, I am signing this object:
$('#staff_mgmt_org_chart_open_positions>tbody>tr>td>table>tbody>tr td.kc-staffchart-column').each(function(){ | |
if ($(this).text().indexOf("position closed") > -1) { | |
//$(this).css('background-color', "red"); | |
// Get the parent container and the next container with the description | |
var container = $(this).parent().parent().parent().parent().parent(); | |
var description = container.next(); | |
// Fade out closed positions and their description | |
container.css('opacity', '.4'); |
var YTThumbQuality = { | |
_default: "default", | |
mqdefault: "mqdefault", | |
sddefault: "sddefault", | |
hqdefault: "hqdefault" | |
} | |
var qpNotification = { | |
enabled: true, | |
notificationTimeout: 5000, |
var qpNotification = { | |
enabled: true, | |
notificationTimeout: 5000, | |
getPermission: function(callback) { | |
if (typeof Notification == 'undefined') { | |
return false; | |
} | |
Notification.requestPermission(function (permission) { | |
if (callback !== undefined) | |
{ |
{ | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { |
const express = require('express'); | |
const router = express.Router(); | |
const Product = require('../models/Product'); | |
router.get('/', function (req, res, next) { | |
let perPage = 3; | |
let page = parseInt(req.query.page) || 0; | |
let pages = 0; | |
let nextUrl = ''; |
class Animal { | |
static emote() { | |
let className = this.name;//this.constructor.name; | |
debugger | |
let emote = className == 'Animal' ? 'Cannot call emote() directly from Animal class' : `${className} does not implement execute()`; | |
console.log(emote); | |
return emote; | |
} | |
} |
(function(win) { | |
var privateDataLayer = win.dataLayer || []; | |
Object.defineProperty(window, 'dataLayer', { | |
get: function() { | |
return privateDataLayer; | |
}, | |
set: function(value) { | |
// Prevent looping when dataLayer has already been defined ie: dataLayer = dataLayer || [] | |
if (value instanceof Array && value !== privateDataLayer) { |
const instances = {}; | |
const Singletonizer = (Klass, ...args) => { | |
const className = Klass.constructor.name; | |
const created = instances.hasOwnProperty(className); | |
if (!created) { | |
new Klass(...args); | |
instances[className] = true; | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# Setup: | |
# 1) `gem install highline` | |
# 2) save this file to a local folder | |
# 3) rename the file to remove extension `mv kube_commands.rb kube_command` | |
# 4) change permissions `chmod 755 kube_commands` | |
# 5) link to your /usr/local/bin `ln -s $PWD/kube_command /usr/local/bin/` | |
# 6) in a new shell you should now be able to run `kube_commands` | |
# 7) add new commands and add to this gist |