Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
#!/usr/bin/env python3 | |
import json | |
import os | |
import sys | |
class UserRecord(object): | |
user_id: str | |
first_name: str | |
last_name: str |
input = 'this_is_a_test_string' | |
output = '' | |
for i in range(0, len(input)): | |
char = input[i] | |
if char == '_': | |
output += '-' | |
else: | |
output += char | |
function Data() { | |
this.data = [1, 2, 3, 4, 5]; | |
} | |
Data.prototype[Symbol.iterator] = function* () { | |
for (const e of this.data) { | |
yield e; | |
} | |
}; |
export class LinkedList { | |
constructor() { | |
this.head = null; | |
} | |
*iterator() { | |
let temp = this.head; | |
while (temp && temp.next) { | |
yield temp.value; | |
temp = temp.next; |
export const REPORT_TIMEOUT_MS = 5000; | |
const TIMEOUT_ERROR = new Error('Ran out of time!!'); | |
const TIMEOUT_PROMISE = new Promise<boolean>( | |
(_, reject) => setTimeout(() => reject(TIMEOUT_ERROR), REPORT_TIMEOUT_MS) | |
); | |
const myPromise = new Promise(...); | |
const success: boolean = await Promise.race([myPromise, TIMEOUT_PROMISE]); |
interface StopwatchResults { | |
startDate: Date | |
endDate: Date | |
latencyMs: number | |
} | |
class Stopwatch { | |
private startDate?: Date | |
private endDate?: Date |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
set-option -g default-shell /bin/zsh | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g default-terminal "screen-256color" | |
set -g base-index 1 | |
# Override default prefix | |
unbind C-b | |
set -g prefix C-t | |
bind C-t send-prefix |