Skip to content

Instantly share code, notes, and snippets.

View gist:8887178
.mejs-inner span {
font-family: Helvetica,Arial;
}
View gist:8887024
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
</staticContent>
</system.webServer>
</configuration>
View gist:9189400
require './pronama'
describe Pronama do
# before {@pronama = Pronama.new}
# it "プロ生ちゃんマジ天使!" do
# expect(@pronama.プロ生ちゃん).to eq "プロ生ちゃんマジ天使!"
# end
# let(:pronama){Pronama.new}
# it "プロ生ちゃんマジ天使!" do
# expect(pronama.プロ生ちゃん).to eq "プロ生ちゃんマジ天使!"
# end
View gist:9272951
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<clientCache cacheControlMode="UseMaxAge"
cacheControlMaxAge="7.00:00:00" />
</staticContent>
</system.webServer>
View gist:9273540
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<!-- 省略 -->
</system.webServer>
<location path="favicon.ico">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge"
cacheControlMaxAge="90.00:00:00" />
View template-aprilfool.php
<?php
/**
* Template Name: Udon
*/
?>
View gist:10544596
<meta name="robots" content="noindex" />
View gist:11121632
if (parseFloat($().jquery) >= 1.7) {
return $(this).on("click", onClick);
} else {
// **reach to this line when using jQuery 1.1x**
return $(this).live("click", onClick); //deprecated since 1.7
}
View gist:3d3587729a2c908c1864
class Canvas {
element: HTMLCanvasElement;
private context: CanvasRenderingContext2D;
constructor(element: HTMLCanvasElement) {
this.element = element;
this.context = element.getContext("2d");
}
drawImage(src: string) {