Skip to content

Instantly share code, notes, and snippets.

View tetsuharuohzeki's full-sized avatar

Tetsuharu Ohzeki tetsuharuohzeki

  • Tokyo, Japan
  • 12:15 (UTC +09:00)
View GitHub Profile
var hoge = {
_hage: null,
get hage () {
if (this._hage === null) {
this._hage = "はげ";
}
return this._hage;
},
diff --git a/browser/components/preferences/in-content/privacy.js b/browser/components/preferences/in-content/privacy.js
--- a/browser/components/preferences/in-content/privacy.js
+++ b/browser/components/preferences/in-content/privacy.js
@@ -174,18 +174,18 @@ var gPrivacyPane = {
// select the remember history option if needed
let rememberHistoryCheckbox = document.getElementById("rememberHistory");
if (!rememberHistoryCheckbox.checked)
rememberHistoryCheckbox.checked = true;
// select the remember forms history option
@tetsuharuohzeki
tetsuharuohzeki / seal-freeze.js
Created March 21, 2013 01:38
SealとかFreezeの挙動
(function(){
"use strict";
function seal () {
console.log("[Object seal] isFrozen:" + Object.isFrozen(this));
console.log("[Object seal] isSealed:" + Object.isSealed(this));
try {
this.a = 1;
this.b = "hoge";
@tetsuharuohzeki
tetsuharuohzeki / patch.diff
Created May 3, 2013 16:08
Firefox devtools inspectorのコンテクストメニューのラベルの訳語を修正proposal
# HG changeset patch
# Parent ef70f64ca1847cd2730530aeeffab42334c9d57d
# User saneyuki_s <saneyuki.s.snyk@gmail.com>
diff --git a/ja/browser/chrome/browser/devtools/inspector.dtd b/ja/browser/chrome/browser/devtools/inspector.dtd
--- a/ja/browser/chrome/browser/devtools/inspector.dtd
+++ b/ja/browser/chrome/browser/devtools/inspector.dtd
@@ -1,12 +1,12 @@
-<!ENTITY inspectorHTMLCopyInner.label "内側の HTML をコピー">
+<!ENTITY inspectorHTMLCopyInner.label "innerHTML をコピー">
@tetsuharuohzeki
tetsuharuohzeki / servo.opml
Last active December 18, 2015 14:19
mozilla/servoとmozilla-servoの全リポジトリのfeed
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>servo</title>
</head>
<body>
<outline title="mozilla-servo" text="mozilla-servo">
<outline text="mozilla-servo/cairo"
title="mozilla-servo/cairo" type="rss"
xmlUrl="https://github.com/mozilla-servo/cairo/commits/master.atom" htmlUrl="https://github.com/mozilla-servo/cairo/commits/master"/>
@tetsuharuohzeki
tetsuharuohzeki / bootstrap.js
Last active December 30, 2015 05:09
Spatial Navigation Igniter
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
* The Original Code is mozilla.org code (Firefox 23)
* The Initial Developer of the Original Code is mozilla.org.
*/
"use strict";
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
@tetsuharuohzeki
tetsuharuohzeki / observer.js
Last active January 4, 2016 12:29
Performance benchmark for observer-js
/* vim: set filetype=javascript shiftwidth=4 tabstop=4 expandtab: */
/*
* @repository
* https://github.com/saneyuki/observer-js
* @version
* 0.2.0
* @license
* BSD 2-Clause License.
*
* Copyright (c) 2014, Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
/* vim: set filetype=typescript shiftwidth=4 tabstop=4 expandtab: */
/*
* @license MIT License
*
* Copyright (c) 2014 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/* vim: set filetype=javascript shiftwidth=4 tabstop=4 expandtab: */
/*
* @repository https://github.com/saneyuki/observer-js
* @version 0.2.0
* @license MIT License
*
* Copyright (c) 2014 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal