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
Abstract | |
Active Directory | |
Adjust | |
Adobe Campaign | |
Adobe Creative Cloud | |
Adobe Creative Suite | |
Adobe Experience Manager | |
Adobe Omniture | |
Adobe Premiere | |
After Effects |
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
require 'socket' | |
require 'rack' | |
require 'rack/lobster' | |
app = Rack::Lobster.new | |
server = TCPServer.new 5678 | |
while session = server.accept | |
request = session.gets | |
puts request |
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
import React, { useState } from 'react' | |
import './DebounceApp.css' | |
function debounce(fn, delay) { | |
let handlerId | |
return (...args) => { | |
clearTimeout(handler) | |
handlerId = window.setTimeout(() => { |
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
/** | |
* | |
* Base64 encode / decode | |
* http://www.webtoolkit.info/ | |
* | |
**/ | |
var Base64 = { | |
// private property |
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
import random | |
unshuffled_array = [1, 2, 3, 4, 5] | |
def shuffle_array_v1(arr): | |
output = [] | |
count_of_items_in_arr = len(arr) | |
while count_of_items_in_arr: | |
random_index = random.randint(0, count_of_items_in_arr - 1) | |
item = arr[random_index] |
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
# /* | |
# There are N people | |
# Some subset of the N people know the secret | |
# There are M meetings which are encoded as subsets of the N people | |
# There is a total order over the meetings that tells you the order in which they occur | |
# When people meet they share the secret | |
# Calculate the set of people who know the secret after all the meetings | |
# */ |
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
<?php | |
// Your goal is to count how many items exist that have an age equal to or greater than 50, and print this final value. | |
$ch = curl_init('https://coderbyte.com/api/challenges/json/age-counting'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
$data = curl_exec($ch); | |
curl_close($ch); |
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
[ | |
{ | |
"id": "0", | |
"title": "", | |
"children": [ | |
{ | |
"id": "1", | |
"title": "Root Folder 1", | |
"children": [ | |
{ |
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
function flatten(obj) { | |
const result = {}; | |
for (const key of Object.keys(obj)) { | |
if (typeof obj[key] === 'object') { | |
const nested = flatten(obj[key]); | |
for (const nestedKey of Object.keys(nested)) { | |
result[`${key}.${nestedKey}`] = nested[nestedKey]; | |
} | |
} else { | |
result[key] = obj[key]; |
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
$(function() { | |
var levels = [ 100, 10, 1, 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001, 0.0000001, 0.00000001 ]; | |
var readyRows = [], levelRows = []; | |
function isCaptchaVisible() { | |
return 0 < $('#window_captcha:visible').length; | |
} | |
function restoreRows() { | |
$('#freecoins_table > tbody > tr:hidden').show(); |
NewerOlder