Skip to content

Instantly share code, notes, and snippets.

@retorillo
retorillo / 2016-01-07-getdevicecaps-returns-96.md
Last active April 21, 2024 08:03
GetDeviceCapsが常にDPI96を返す問題と解決方法について

GetDeviceCapsが常にDPI96を返す問題と解決方法について

このドキュメントについて

このドキュメントは次の環境で記述されていますが、 他の開発環境でもほぼ同様の考え方で問題なく使えます。

  • オペレーシングシステム:Windows 10 (Windows Vista以降が必要)
  • 対応言語: C / C++ / C#
  • 対応コンパイラ: gccまたはg++ (minGW) / csc
@koyhoge
koyhoge / report.md
Last active November 18, 2018 02:35
エンジニアのための法律勉強会 #8『盗用と著作権の基礎知識と注意点&エンジニアのための?!結婚と離婚の基本のキ(番外編)』  参加メモ

エンジニアのための法律勉強会 #8『盗用と著作権の基礎知識と注意点&エンジニアのための?!結婚と離婚の基本のキ(番外編)』 参加メモ

イベントURL: https://coedo-dev.doorkeeper.jp/events/31461

//
// ToyGC.swift
// ToyGC
//
// Created by satoshia on 2015/08/31.
// Copyright © 2015 satoshia. All rights reserved.
//
import Darwin
import Foundation
/**
* Produces a function which uses template strings to do simple interpolation from objects.
*
* Usage:
* var makeMeKing = generateTemplateString('${name} is now the king of ${country}!');
*
* console.log(makeMeKing({ name: 'Bryan', country: 'Scotland'}));
* // Logs 'Bryan is now the king of Scotland!'
*/
var generateTemplateString = (function(){
@miyakogi
miyakogi / nim_syntax.md
Last active September 6, 2025 19:46
Syntax of Nim
@aaronk6
aaronk6 / README.md
Last active November 9, 2023 05:17
launchUri

Cross-browser implementation of navigator.msLaunchUri

Microsoft’s navigator.msLaunchUri method only works in Internet Explorer on Windows 8. Therefore I came up with a (nearly) cross-browser implementation that uses the native msLaunchUri when it’s available and falls back to adventurous hacks when running in other browsers.

Description

launchUri (uri, successCallback, noHandlerCallback, unknownCallback)
@koyopro
koyopro / amazon-calc.js
Last active April 11, 2025 06:58 — forked from polamjag/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d
@polamjag
polamjag / amazon-calc.js
Last active September 7, 2022 11:23 — forked from arcatdmz/amazon-csv.js
Amazon で使った金額の合計を出す奴 (2014-2016 年バージョン)
// Amazon で使った金額の合計を出す奴
//
// 使い方:
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽)
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト
// 4. エンターで実行
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う)
// 5. しばらく待つと alert で合計金額を表示
//
import javafx.beans.binding.Bindings;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.control.Cell;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TextArea;
import javafx.scene.input.KeyCode;
import javafx.util.Callback;
import javafx.util.StringConverter;
@aoetk
aoetk / ShapeSample.css
Last active August 29, 2015 14:02
JavaFXでSVGアイコンを使ったボタンのサンプル
.button-icon-shape {
-fx-scale-x: 2.0;
-fx-scale-y: 2.0;
}
.stop-button-icon {
-fx-fill: black;
}
.circle-button {