Apply a custom filter for jQuery DataTables. In this instance we are filtering by date.
A Pen by Supakit Kiatrungrit (Nat) on CodePen.
class CashAmount { | |
constructor(double) { | |
this.amount = double; | |
} | |
totalAsPennies() { | |
return Math.floor(this.amount*100); | |
} | |
addDoubleAmount(double) { |
var kthSmallest = function(binaryTree, k) { | |
var arr = []; | |
var search = function(tree) { | |
if (arr.length<k) { | |
arr.push(tree.value) | |
search(tree.left); | |
search(tree.right); | |
} else { | |
if (tree.value < Math.max(arr)) { | |
arr.splice(arr.indexOf(Math.max(arr))); |
var vowelDoubler = function(arr) { | |
vowels = {'a':'a', 'i':'i', 'o':'o', 'u':'u', 'e':'e'} | |
var count = arr.reduce(function (acc, next) { | |
return next in vowels ? acc++ : acc; | |
}); | |
console.log(count) | |
//hard coded count because reduce function doesn't seem to work | |
count=1; | |
j = arr.length+count-1; | |
for (var i=arr.length-1; i>=0; i--) { |
//labels | |
//subscribe to labels, needs to create a new label with users as properties, or an array of users | |
//with references to users, or their components | |
//multiple users need to access the same message bus | |
//have a handler for updating the data associated with each user | |
var messageBus = function() { | |
this.topics = {} |
var isSubsequence = function(str, sub) { | |
currentIndex = 0; | |
for (var i = 0; i<str.length; i++) { | |
if (str[i] === sub[currentIndex]) { | |
currentIndex +=1; | |
} | |
} | |
return currentIndex >= sub.length ? true : false; | |
} |
const LFUcache = (capacity) => { | |
let box = {} | |
box.cache = {} | |
for (var i = 0; i<capacity; i++) { | |
box[i] = []; | |
} | |
box.put = function (k, v) { | |
if (box.cache.keys.length <capacity) { | |
if (!(k in cache)) { | |
var item = [k,v, 0] |
<div class="row"> | |
<div class="box" id="box1"></div> | |
<div class="box" id="box2"></div> | |
</div> | |
<div class="row"> | |
<div class="box" id="box3"></div> | |
<div class="box" id="box4"></div> | |
</div> | |
# CROmetrics Engineering Application | |
Thanks for your interest in working with us! To apply: | |
- Create a "new gist" (link in github header once you're logged in) with the Raw Text of this .md file (**do not fork this gist**) | |
- Answer the following questions in the spaces provided | |
- Send an email to [email protected] and [email protected] that includes: | |
- A paragraph that tells us a little about yourself and why you are interested in this job | |
- A link to your Gist | |
- Your desired hourly rate and general availability |
Apply a custom filter for jQuery DataTables. In this instance we are filtering by date.
A Pen by Supakit Kiatrungrit (Nat) on CodePen.
package tylerwalker.io.dsl | |
import android.graphics.Color | |
import android.text.Spannable | |
import android.text.SpannableStringBuilder | |
import android.text.style.ForegroundColorSpan | |
class Atom(val content: SpannableStringBuilder) { | |
operator fun String.unaryPlus() { content.append(this) } |