Skip to content

Instantly share code, notes, and snippets.

View kurema's full-sized avatar

kurema kurema

View GitHub Profile
[
{
"word": "Asshole",
"kana": "アスホール",
"meaning": "いやな奴(Ass=お尻、Hole=穴)",
"notice": "「うざい野郎」「ろくでなし」"
},
{
"word": "あばずれ",
"kana": "あばずれ",
@ufcpp
ufcpp / vs16_7p3.cs
Last active June 28, 2020 05:24
Visual Studio 16.7 Preview 3 での C# 9.0
// Top-level statements
// - Program.Main 書かなくていい
// - Main (相当の通常は書けない名前のメソッド) をコンパイラー生成
// - 制限:
// - プロジェクト全体で1ファイルだけこの書き方ができる
// - ファイル内でも、名前空間とかクラスの宣言よりも前でないとダメ
using System;
var p = new Point(1, 2);
@dongri
dongri / hello.sh
Last active June 14, 2020 21:06
hello github-japan.com
#!/bin/sh
base="https://github-japan.com";
paths=("/attempts.php" "/norepos.php" "/submit.php");
for path in "${paths[@]}"; do
for i in {0..1000}; do
username=$(cat /dev/urandom | tr -dc 'a-z' | fold -w 6 | head -n 1)
password=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
curl -XPOST -d "user=$username&pass=$password" $base$path;
@bibohlog
bibohlog / GetColorFromHSB_simple.cs
Created November 12, 2017 06:19
HSBからRGBへ変換する (コピペ用)
/// <summary>
/// Get System.Windows.Media.Color from Hue / Saturation / Brightness of double values without "if" statements
/// </summary>
/// <param name="Hue">Hue in 0 to 360</param>
/// <param name="Saturation">Saturation in 0 to 100</param>
/// <param name="Brightness">Brightness(Value) in 0 to 100</param>
/// <returns>Color</returns>
Color GetColorFromHSB_(double Hue, double Saturation, double Brightness)
{
@mala
mala / o.md
Created April 21, 2017 05:25
Orarioについての雑感

調べたこと

通信をキャプチャして調べた。似たようなことをしている人が既にいて仕組みについてはサービス提供者側が説明されているとおりだった。

IDパスワードはネイティブUIで表示して、html中のどこに入力するかなどはリモートから受信するjsで定義している。特に難読化や独自の暗号化などがされているわけではない。

@wf9a5m75
wf9a5m75 / filedownload.sh
Last active June 28, 2018 01:23
Download a file from your github repository directly (without git clone). You need to get your personal access key at https://github.com/settings/tokens
#!/usr/bin/env bash
export GITHUB_ACCESS_TOKEN=""
export GITHUB_USERNAME=""
export REPO_OWNER=""
BRANCH=""
REPO=""
FILE_PATH=""
. ~/.profile
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace TestSynchronizationContext
{
class SingleThreadSynchronizationContext : SynchronizationContext
@mattn
mattn / .classpath
Created August 8, 2012 04:51
業務プログラマがFizzBuzz書いたらどうなるか ( ref: http://d.hatena.ne.jp/irof/20120808/p1 )
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/usr/share/java/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="/usr/share/java/junit4.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>