- Getting Started
- Really Getting Started
- Wait did we start?
- It Appears So.
- Also in this timeline we are started
- Foo.
- And finally Bar.
This file contains 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
var data= ["pos","angband","frog","alex"]; | |
var angband = 'angband'; | |
data.sort(); | |
if (data.some(e => e === angband)) { | |
/* data contains angband */ | |
data.sort(function(x,y){ return x == angband ? -1 : y == angband ? 1 : 0; }); | |
} | |
console.log(data); |
This file contains 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
//Credit: https://stackoverflow.com/questions/25047463/group-by-and-sum-using-underscore-lodash/45287338 | |
var _ = require('lodash'); | |
const data = [ | |
{ | |
shape: 'foo', | |
sides: 15, | |
len: 4 | |
}, |
This file contains 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
const dotenv = require("dotenv"); | |
dotenv.config(); | |
const apiUser = process.env["KREEZALID_USER_ID"]; | |
const apiSecret = process.env["KREEZALID_USER_SECRET"]; | |
const axios = require("axios"); | |
var options = { | |
order_type_url_token: "8drhwt0y3f", | |
category_id: 21842, | |
user_id: 35682, |
This file contains 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
public static String getAgoString(Date occurrence) { | |
try { | |
Date now = new Date(); | |
long duration = now.getTime() - occurrence.getTime(); | |
long minutes = TimeUnit.MILLISECONDS.toMinutes(duration); | |
long hours = TimeUnit.MILLISECONDS.toHours(duration); | |
long days = TimeUnit.MILLISECONDS.toDays(duration); | |
if (days > 180) { | |
return " billions and billions of years ago"; | |
} |
This file contains 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
package com.gwtplatform.samples.tab.client.application.dialog; | |
import javax.inject.Inject; | |
import com.google.gwt.uibinder.client.UiBinder; | |
import com.google.gwt.uibinder.client.UiField; | |
import com.google.gwt.user.client.ui.IsWidget; | |
import com.google.gwt.user.client.ui.Widget; | |
import com.gwtplatform.mvp.client.Tab; | |
import com.gwtplatform.mvp.client.TabData; |
This file contains 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
var senatedataset= [{ age: 38, value: 0.00}, | |
{ age: 39, value: 0.00}, | |
{ age: 40, value: 0.01}, | |
{ age: 41, value: 0.01}, | |
{ age: 42, value: 0.03}, | |
{ age: 43, value: 0.01}, | |
{ age: 44, value: 0.00}, | |
{ age: 45, value: 0.02}, | |
{ age: 46, value: 0.00}, | |
{ age: 47, value: 0.01}, |