Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
Hello

Yoichi Fujimoto wozozo

😇
Hello
View GitHub Profile
View wait.ts
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function wait(ms: number): Promise<any> {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, ms);
});
}
View reiwa.js
new Intl.DateTimeFormat("ja-JP-u-ca-japanese", {dateFormat: "full", year: "2-digit", month: "short", day: "2-digit"}).format(new Date())
> "令和02年6月25日"
View gist:306378
[10/02/17 15:39:42] Toru Furukawa (tof): show は、デフォルトで見えてないものを見せるような動作じゃないかな。
[10/02/17 15:39:59] Toru Furukawa (tof): コートの前をはだけて、
[10/02/17 15:40:04] Toru Furukawa (tof): ちんこを show
View capture.js
const puppeteer = require('puppeteer');
const { Storage } = require('@google-cloud/storage');
const url: string = '';
const bucketName = '';
const fileName = `hoge-${Date.now()}.png`;
(async () => {
const browser = await puppeteer.launch();
View slack.js
const { WebClient } = require('@slack/web-api');
const slackToken = process.env.SLACK_TOKEN;
async function uploadFile() {
const { createReadStream } = require('fs');
const web = new WebClient(slackToken);
const conversationId = '';
try {
const result = await web.files.upload({
View 勤怠.js
(function () {
var i = 0;
document.querySelectorAll('tr.days .dval.vst').forEach(function(e) {
setTimeout(function () {
e.click();
document.querySelector('#startTime').value = '10:30';
document.querySelector('#endTime').value = '20:00';
document.querySelector('#dlgInpTimeOk').click();
}, 4000 * i);
i++;
View vscode.json
{
"editor.fontSize": 15,
// "editor.fontFamily": "'Fira Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontFamily": "'Hack', Menlo, Monaco, 'Courier New', monospace",
"atomKeymap.promptV3Features": true,
"files.trimTrailingWhitespace": true,
"files.associations": {
"*.jinja2": "jinja"
},
"editor.multiCursorModifier": "ctrlCmd",
@wozozo
wozozo / virtual.conf
Created Mar 14, 2011
apache VirtualDocumentRoot
View virtual.conf
LogFormat "%h^__%v^_%V^_%l^_%u^_%t^_%r^_%>s^%b^_%{Referer}i^%{User-Agent}i" vhost
NameVirtualHost *:80
<Directory *>
Options FollowSymLinks ExecCGI Includes MultiViews
AllowOverride All
AcceptPathInfo On
</Directory>
View gist:10b43b559b2517abd059b4b8d359dc46
spof% ~git master brew list
ansible hub msgpack readline
autoconf hugo mysql reattach-to-user-namespace
automake icu4c neovim redis
awscli imagemagick ngrok ruby
cmake jemalloc nkf ruby-build
coreutils jpeg nmap sqlite
curl jq node sshrc
curlish kotlin numpy supervisor
direnv libevent nvm terraform
View hatebu_https_let.js
(function() {
var baseURL = 'https://b.hatena.ne.jp';
var redirect = function(qArgs) {
var url = baseURL + '/add?b2=1' + ( qArgs || '' ) + '&url=' + encodeURIComponent(location.href);
location.href = url;
}
if (document.getElementsByTagName('frameset').length) {
return redirect('&frame=1');
You can’t perform that action at this time.