Skip to content

Instantly share code, notes, and snippets.

View zukilover's full-sized avatar
🦁

Heri Setiawan zukilover

🦁
  • Bandung, Indonesia
View GitHub Profile
@zukilover
zukilover / Random VO generator
Created September 28, 2017 08:05
PHP Generator
<?php
$obj = array();
for($i = 1; $i <= 20; $i++){
$item = (object) array(
"amount" => "10000",
"id" => $i . "9ba3d1c0-72b3-4ffb-a738-e80d78c0b290",
"detailStatus" => "Complete",
"chargeInstruction" => "REM",
"beneBankName" => "PT. Bank Mandiri Tbk.",
"creditAcctNo" => "1153331290464",
@zukilover
zukilover / ig_following.js
Created February 20, 2020 17:42
Instagram Following List
JSON.stringify(
const following = Array.from(document.querySelectorAll('.wo9IH'));
following.reduce((acc, list) => {
const user = list.querySelector('.d7ByH');
const username = user.querySelector('.FPmhX').innerText;
if(!user.innerText.match(/(Sudah Diverifikasi)|(Verified)/)){
acc.push(`@${username}`);
}
return acc;
}, [])
@zukilover
zukilover / population.csv
Created July 28, 2023 14:24
Population data
city homelat homelon homecontinent state n
Sydney -33.865 151.2094 Australia New South Wales 5312163
Melbourne -37.8136 144.9631 Australia Victoria 5078193
Brisbane -27.4678 153.0281 Australia Queensland 2514184
Perth -31.9522 115.8589 Australia Western Australia 2059484
Adelaide -34.9289 138.6011 Australia South Australia 1345777
Gold Coast -28.0167 153.4 Australia Queensland 679127
Canberra -35.2931 149.1269 Australia Australian Capital Territory 426704
Newcastle -32.9167 151.75 Australia New South Wales 322278
Wollongong -34.4331 150.8831 Australia New South Wales 302739
@zukilover
zukilover / map.json
Created July 28, 2023 14:24
Aussie map
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zukilover
zukilover / unemployment.csv
Created July 28, 2023 14:41
Unemployment
We can't make this file beautiful and searchable because it's too large.
,LAUS_Code,Period,Labor_force,Employed,Unemployed,Unemployment_rate,Preliminary,Labor_force_NA,Employed_NA,Unemployed_NA,Unemployment_rate_NA,fips
1,CN0100100000000,Sep-19,26010.0,25391.0,619.0,2.4,False,False,False,False,False,01001
2,CN0100300000000,Sep-19,96754.0,94510.0,2244.0,2.3,False,False,False,False,False,01003
3,CN0100500000000,Sep-19,8656.0,8376.0,280.0,3.2,False,False,False,False,False,01005
4,CN0100700000000,Sep-19,8655.0,8430.0,225.0,2.6,False,False,False,False,False,01007
5,CN0100900000000,Sep-19,25351.0,24763.0,588.0,2.3,False,False,False,False,False,01009
6,CN0101100000000,Sep-19,4951.0,4783.0,168.0,3.4,False,False,False,False,False,01011
7,CN0101300000000,Sep-19,9297.0,8999.0,298.0,3.2,False,False,False,False,False,01013
8,CN0101500000000,Sep-19,45820.0,44455.0,1365.0,3.0,False,False,False,False,False,01015
9,CN0101700000000,Sep-19,15763.0,15369.0,394.0,2.5,False,False,False,False,False,01017
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
,year,fips,totalvotes,version,mode,democrat_candidate,democrat_votes,republican_candidate,republican_votes,green_candidate,green_votes,other_candidate,other_votes,dem_share,rep_share
0,2000,01001,17208.0,20191203,TOTAL,AL GORE,11993.0,GEORGE W. BUSH,11993.0,RALPH NADER,160.0,OTHER,113.0,0.6969432821943282,0.6969432821943282
1,2000,01003,56480.0,20191203,TOTAL,AL GORE,40872.0,GEORGE W. BUSH,40872.0,RALPH NADER,1033.0,OTHER,578.0,0.7236543909348442,0.7236543909348442
2,2000,01005,10395.0,20191203,TOTAL,AL GORE,5096.0,GEORGE W. BUSH,5096.0,RALPH NADER,46.0,OTHER,65.0,0.49023569023569025,0.49023569023569025
3,2000,01007,7101.0,20191203,TOTAL,AL GORE,4273.0,GEORGE W. BUSH,4273.0,RALPH NADER,52.0,OTHER,66.0,0.6017462329249401,0.6017462329249401
4,2000,01009,17973.0,20191203,TOTAL,AL GORE,12667.0,GEORGE W. BUSH,12667.0,RALPH NADER,154.0,OTHER,175.0,0.704779391309186,0.704779391309186
5,2000,01011,4904.0,20191203,TOTAL,AL GORE,1433.0,GEORGE W. BUSH,1433.0,RALPH NADER,24.0,OTHER,52.0,0.29221044045676997,0.292210440456
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 16 columns, instead of 5 in line 9.
,STATE,COUNTY,STNAME,CTYNAME,POPESTIMATE2010,POPESTIMATE2011,POPESTIMATE2012,POPESTIMATE2013,POPESTIMATE2014,POPESTIMATE2015,POPESTIMATE2016,POPESTIMATE2017,POPESTIMATE2018,POPESTIMATE2019,fips
0,01,000,Alabama,Alabama,4785437,4799069,4815588,4830081,4841799,4852347,4863525,4874486,4887681,4903185,01000
1,01,001,Alabama,Autauga County,54773,55227,54954,54727,54893,54864,55243,55390,55533,55869,01001
2,01,003,Alabama,Baldwin County,183112,186558,190145,194885,199183,202939,207601,212521,217855,223234,01003
3,01,005,Alabama,Barbour County,27327,27341,27169,26937,26755,26283,25806,25157,24872,24686,01005
4,01,007,Alabama,Bibb County,22870,22745,22667,22521,22553,22566,22586,22550,22367,22394,01007
5,01,009,Alabama,Blount County,57376,57560,57580,57619,57526,57526,57494,57787,57771,57826,01009
6,01,011,Alabama,Bullock County,10876,10675,10606,10549,10663,10400,10389,10176,10174,10101,01011
7,01,013,Alabama,Butler County,20932,20866,20670,20356,20327,20162,20012,19888,19631,19448,01013
8,01,015,Alabama,Calhoun Cou