Skip to content

Instantly share code, notes, and snippets.

View yuji314159's full-sized avatar

Yuji Amano yuji314159

View GitHub Profile

JAWS DAYS 2019

雑感

  • 10:00 wifiつながらない
  • 11:05 software designもらった
  • 11:10 会場寒い

1F 今日から始めるCI/CD

前半

import gzip
import json
import boto3
def lambda_handler(event, context):
bucket_name = event['Records'][0]['s3']['bucket']['name']
object_key = event['Records'][0]['s3']['object']['key']
s3 = boto3.client('s3')
res = s3.get_object(Bucket=bucket_name, Key=object_key)
#define __WAIT 0xf1
#define __EXT 0xe0
#define __MAKE(code) code
#define __BREAK(code) 0xf0, code
#define __TYPE(code) __MAKE(code), __BREAK(code), __WAIT
#define __TYPE_EXT(code) __EXT, __MAKE(code), __EXT, __BREAK(code), __WAIT
#define __SCANCODE_SHIFT 0x12
#define __SCANCODE_CTRL 0x14
#define __SCANCODE_ALT 0x11
#include <cstdio>
#include <string>
#include <algorithm>
using namespace std;
bool block(int k1, int locked1, int k2, int locked2)
{
return (locked1 & (1 << k2));
}
#include <cstdio>
#include <algorithm>
using namespace std;
struct pii
{
pii() {}
pii(int f, int s) : first(f), second(s) {}
int first, second;
#include <cstdlib>
#include <iostream>
#include <stack>
using namespace std;
int main()
{
stack<int> s;
char token[256];
int a, b;
7
0 2 5 0 0 0 0
2 0 4 6 10 0 0
5 4 0 2 0 0 0
0 6 2 0 0 1 0
0 10 0 0 0 3 5
0 0 0 1 3 0 9
0 0 0 0 5 9 0
#include <stdio.h>
#include <string.h>
int main(void)
{
int nstate, nalphabet;
int transition[64][10];
int start_state;
int naccept_state, accept_state[64] = {0};
javascript:
$.each($('tr.dat'), function(i, e) {
if (
!$('td:eq(1)', e)[0].innerText.match(/s13\w\w\d\d\d/) ||
!$('td:eq(3)>span', e)[0].innerText.match(/.*Accepted.*/)
) {
$(e).css('display', 'none');
}
});
void(0)