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
# Exploratory visualization of house size | |
## Instruction 1/2 | |
```{r} | |
# Load packages | |
library(moderndive) | |
library(ggplot2) | |
# Plot the histogram | |
ggplot(house_prices, aes(x = sqft_living)) + |
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
# Exploratory visualization of house size | |
## Instruction 1/2 | |
```{r} | |
# Load packages | |
library(moderndive) | |
library(ggplot2) | |
# Plot the histogram | |
ggplot(house_prices, aes(x = sqft_living)) + |
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
#include <iostream> | |
using namespace std; | |
class Piece { | |
public: | |
int position; | |
Piece(){ position = -1; } | |
Piece(int position){ this->position = position; } | |
~Piece() { |
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
adik,asid,ambil,alangkah,asimilasi,afiat,apatah,agah,api,artikel,amuk,aroma,arwah,angsa,aspek,amfibia,atas-mengatas,amil,amanah,asap,anugerah,alam,andar,aum,arkitek,ayu,ayak,akut,adab,aci,akuatik,anasir,andam,azam,abar,akaun,arteri,aluminium,alu,akikah,arca,ayun,almari,adat,adu,ampun,asah,ampu,akrab,automasi,ajuk,amal,akur,aturcara,asyik-asyik,akhirat,anggur,amanat,ampang,ayun-temayun,alif,alga,alpa,agroklimatik,artifak,apalagi,atom,atur,asasi,asli,angkut,anyam,analisis,apit,azimut,agresif,abad,ancam,arah,arah-arah,alternatif,awang,antisosial,autoriti,antarabangsa,ayam,acuh,arkib,agensi,anakanda,asa,alat,alir,anjal,aju,armada,akas,agar,asing,atur-atur,adik-kakak,asin,astronomi,aktivis,aeronautik,abid,adang,alun,aerodinamik,akuakultur,antropologi,atmosfera,abjad,angkup,anda,aneh,asas,anjur,ada,adoi,awal,asfalt,alaf,alergi,asam,anak,apabila,acar,aising,apam,akademi,andragogi,amali,agregat,ais,antiglobalisasi,auditorium,ali,akui,andai,alik,aneka,awas,automobil,analisa,asak,awet,ayat,anjak,aktiviti,asing-asing,ak |
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 re | |
from bs4 import BeautifulSoup as bs | |
from urllib.request import Request, urlopen, URLError | |
from sys import exit | |
from os import system | |
def map(arr, func): | |
try: return [func(x) for x in arr] | |
except TypeError: | |
try: return [func(arr[i], i) for i in range(len(arr))] |
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
not | |
ada | |
inikah | |
sampai | |
adakah | |
inilah | |
sana | |
adakan | |
itu | |
sangat |
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
class Promise { | |
constructor(action){ | |
this.status = 'pending'; | |
this.value = this.error = undefined; | |
action((value=>{ | |
this.status = 'resolved'; | |
this.value = value; | |
}).bind(this),(error=>{ | |
this.status = 'rejected'; |
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
<html lang="en"> | |
<head> | |
<!-- <script id="facebook-jssdk" src="https://connect.facebook.net/en_US/sdk.js" async defer></script> | |
<script src="https://apis.google.com/js/platform.js" async defer></script> | |
<style type="text/css"> | |
.icon { | |
width: 36px; | |
height: 36px; | |
background-repeat: no-repeat; | |
background-position: center; |
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 isClose(a,b,debug=false){ | |
let differ=0, aa=a.split(''), bb=b.split(''); | |
for(const letter of 'abcdefghijklmnopqrstuvwxyz'){ | |
let aaa=aa.includes(letter), bbb=bb.includes(letter); | |
if(!((aaa && bbb) || (!aaa && !bbb))) { | |
differ++; | |
} | |
} | |
if(debug) console.log(differ); | |
return differ <= 2; |
OlderNewer