Skip to content

Instantly share code, notes, and snippets.

View schktjm's full-sized avatar
🏠
at home

Tajima Sachiko schktjm

🏠
at home
View GitHub Profile
@schktjm
schktjm / gist:207d342b050cea7d7b94ad225eace315
Created February 6, 2025 06:04
StepFormDialog.test.tsx (CI上でだけ落ちるテスト)
import { userEvent } from '@storybook/test'
import { act, fireEvent, render, screen, waitFor } from '@testing-library/react'
import React, { useState } from 'react'
import { Button } from '../../Button'
import { Text } from '../../Text'
import { StepFormDialog } from './StepFormDialog'
import { StepFormDialogItem } from './StepFormDialogItem'
@schktjm
schktjm / styles.css
Created September 21, 2021 11:43
Smart Confluence Style
h1 {
font-weight: bold;
}
body {
font-size: 14px;
color: #37352F;
line-height: 24px;
}
@schktjm
schktjm / hello_world.py
Created August 1, 2019 06:49
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@schktjm
schktjm / hello_world.py
Created August 1, 2019 06:48
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
<template>
<div id="box" @mousedown="flgTrue" @mousemove="handleMove" @mouseleave="flgFalse" @mouseup="flgFalse">
<div class="content" :style="styles">
aaaaaaaaaaaaaaaaaaa
{{this.flg}}
</div>
</div>
</template>
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
struct Item {
char c;
int freq;
Item *left;
Item *right;
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
struct Item {
char c;
int freq;
Item *left;
Item *right;
# -*- coding: utf-8 -*-
import pygame.mixer
import serial
import time
import sys
import glob
import random
BLUETOOTH = '/dev/ttyAMA0'
#include <bits/stdc++.h>
using namespace std;
#define Int long long int
#define REP(i,n) for(int i=0;i<(n);i++)
#define REAP(i,a,n) for(int i=(a);i<(n);i++)
#define YES cout<<"Yes"<<endl
#define NO cout<<"No"<<endl
#define fr first
#define sc second
#include <bits/stdc++.h>
using namespace std;
#define Int long long int
#define REP(i,n) for(int i=0;i<(n);i++)
#define REAP(i,a,n) for(int i=(a);i<(n);i++)
#define YES cout<<"Yes"<<endl
#define NO cout<<"No"<<endl
#define fr first
#define sc second