Skip to content

Instantly share code, notes, and snippets.

View kharioki's full-sized avatar
🤘
I'm burdened with glorious purpose

Tony Kharioki kharioki

🤘
I'm burdened with glorious purpose
View GitHub Profile
{
"question" :
"{
'Given the choice of anyone in the world, whom would you want as a dinner guest?',
'Would you like to be famous? In what way?',
'Before making a telephone call, do you ever rehearse what you are going to say? Why?',
'What would constitute a “perfect” day for you?',
'When did you last sing to yourself? To someone else?',
'If you were able to live to the age of 90 and retain either the mind or body of a 30-year-old for the last 60 years of your life, which would you want?',
'Do you have a secret hunch about how you will die?',
/* index.css */
body{
background: #eee;
margin: 20px;
font-family: tahoma;
}
#todo-wrapper{
width: 80%;
var path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src') + '/app/index.js',
output: {
path: path.resolve(__dirname, 'dist') + '/app',
filename: 'bundle.js',
publicPath: '/app/'
},
@kharioki
kharioki / counties.json
Last active February 13, 2025 05:18 — forked from pensely/counties.json
Kenya county names, codes and capitals in JSON
[{
"name": "Mombasa",
"code": 1,
"capital": "Mombasa City"
}, {
"name": "Kwale",
"code": 2,
"capital": "Kwale"
}, {
"name": "Kilifi",
@kharioki
kharioki / names.json
Created December 28, 2016 12:38 — forked from ptigas/names.json
names.json
{"Andreas": "male", "Arely": "female", "Mortimer": "male", "Pauletta": "female", "Zita": "female", "Casen": "male", "Araceli": "female", "Ronald": "female", "Eura": "female", "Aracely": "female", "Destany": "female", "Cael": "male", "Kaleigh": "female", "Ayleen": "female", "Nikhil": "male", "Elex": "male", "Myah": "female", "Channie": "female", "Evalyn": "female", "Less": "male", "Jerel": "male", "Sandi": "female", "Lesa": "female", "Paul": "male", "Sandy": "female", "Kraig": "male", "Merlin": "male", "Vanesa": "female", "Matthew": "female", "Althea": "female", "Lucille": "female", "Samatha": "female", "Hamilton": "male", "Johnie": "female", "Dionne": "female", "Stephania": "female", "Stephanie": "male", "Raheem": "male", "Murl": "female", "Lafe": "male", "Ginger": "female", "Audy": "male", "Hughie": "male", "Jewell": "female", "Edra": "female", "Tatyanna": "female", "Quincy": "male", "Harvey": "male", "Agustus": "male", "Basil": "male", "Casey": "male", "Kaydence": "female", "Leilani": "female", "Dejuan": "m
def subsets(my_set):
result = [[]]
for x in my_set:
result = result + [y + [x] for y in result]
return result
a = [1,2,3]
def sort_special(a):
new_a = []
while len(a) > 1:
new_a.append(min(a))
a.remove(min(a))
new_a.append(max(a))
a.remove(max(a))
return new_a
def simultaneous_eqn(eqns):
a = eqns[0]
b = eqns[1]
c = eqns[2]
x = float((-b - c) / a)
return x
def two_unknown(eqns):
def time_sort(time):
i = 0
music = time[i][1]
for music in range(len(time)-1,0,-1):
for i in range(music):
if time[i][1]>time[i+1][1]:
clock = time[i]
time[i] = time[i+1]
time[i+1] = clock
return time
a = [[1,2,4,5],[6,7,8,9],[10,11,12,13],[14,15,16,17]]
number = 17
def box_arr_num(a, number)
length = a.length-1
number = number
(0..a.length).each do |i|
if a[i][a.length-1] >= number
(0..a.length).each do |j|
if a[i][j] == number
return i, j