Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🕴

Bill Xiong bxio

💭
🕴
View GitHub Profile
@bxio
bxio / airports.json
Created Jul 19, 2020 — forked from tdreyno/airports.json
JSON data for airports and their locations
View airports.json
This file has been truncated, but you can view the full file.
[
{
"code": "AAA",
"lat": "-17.3595",
"lon": "-145.494",
"name": "Anaa Airport",
"city": "Anaa",
"state": "Tuamotu-Gambier",
"country": "French Polynesia",
View index.js
function handleFirstIntent(intent, session, callback){
sessionAttributes = {
questionsAsked: 0,
questionsWanted: 0,
questionBank: [],
}
sessionAttributes.questionsWanted = intent.slots.NumToAsk.value;
var cardTitle = "Welcome";
var speechOutput = "Asking "+sessionAttributes.questionsWanted+" questions.";
// If the user either does not reply to the welcome message or says something that is not
View 2048.c
M[16],X=16,W,k;main(){T(system("stty cbreak")
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<<
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k)
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X]
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4;
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4||
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2
View keybase.md

Keybase proof

I hereby claim:

  • I am bxio on github.
  • I am bx (https://keybase.io/bx) on keybase.
  • I have a public key whose fingerprint is 0060 CF3A 2211 5D33 3EC4 4ED2 2E79 3B2A 3817 F127

To claim this, I am signing this object: