Skip to content

Instantly share code, notes, and snippets.

Jackson Sandland jackson-sandland

Block or report user

Report or block jackson-sandland

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 throttle.js
// decorator to only allow function call after the timer is done.
const throttle = (func, delay) => {
let timeout;
return function() {
const context = this;
const args = arguments;
if (!timeout) {
func.apply(context, args);
timeout = true;
setTimeout(() => timeout = false, delay);
View gist:9378003
# Intro to Prototypes
## JS Data Structures
### Outline
* Objects in Javascript?
* object literals
* properties
@jackson-sandland
jackson-sandland / Quiz_One_Coding_Answers
Created Jan 11, 2014
Code_Snippets_From_General_Assembly
View Quiz_One_Coding_Answers
# Ruby_Arrays
days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
days.pop
days.unshift("Sunday")
puts days
============================================================================
Write code that would add the number 7 to "Erik's" favorite numbers.
users = {
"Jonathan" => {
You can’t perform that action at this time.