View ng.go
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
const requestURL = "https://twitter.com/utgwkk" |
View quine.sql
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
with quine as (select 'with quine as (select %c%s%c as s) select printf(s, char(39), s, char(39)) from quine' as s) select printf(s, char(39), s, char(39)) from quine |
View policies.json
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
{ | |
"took" : 26, | |
"_shards" : { | |
"successful" : 3, | |
"total" : 3, | |
"failed" : 0 | |
}, | |
"timed_out" : false, | |
"hits" : { | |
"total" : 330, |
View gengo.txt
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
令和 | |
平成 | |
昭和 | |
大正 | |
明治 | |
慶応 | |
元治 | |
文久 | |
万延 | |
安政 |
View keybindings.json
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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+q", | |
"command": "-workbench.action.quickOpenView" | |
} | |
] |
View style.css
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
.Chromeで見ると3行で折り返される { | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: 3; | |
display: -webkit-box; | |
overflow: hidden; | |
text-overflow: -o-ellipsis-lastline; | |
word-wrap: break-word; | |
} |
View detect_useless_if.py
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 sys | |
import ast | |
class TrueFalseDetected(Exception): | |
def __init__(self, lineno, col): | |
self.lineno = lineno | |
self.col = col | |
def __str__(self): | |
return 'Useless `if` detected at line {}, column {}'.format(self.lineno, self.col) |
View gitignore-webapp.pl
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
=begin comment | |
各言語実装のディレクトリが置いてあるディレクトリ (ISUCON8予選なら torb/webapp/)にこのスクリプトを置いて実行すると、各言語実装のディレクトリに.gitignoreが配置される | |
=end comment | |
=cut | |
sub get_gitignore { |
View twitter-archive-viewer.html
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Twitter Archive Viewer</title> | |
<script>window.YTD = { tweet: {}, account: {} }</script> | |
<script src="tweet.js"></script><!-- this is loading a file from the archive --> | |
<script src="account.js"></script><!-- this is loading a file from the archive --> | |
<style> | |
.tweet { border: 1px solid #eee; margin: 8px } | |
.full_text { padding: 8px } | |
.created_at { padding: 8px; color: #777 } |
View 良さみ.py
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
def 優勝(): | |
print("二郎からのセイク") | |
class 良さみがある: | |
ありえん = 10 | |
def __init__(self, depth): | |
self.depth = depth | |
def ありえん良さみが深い(self): |
NewerOlder