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
function p(t) { | |
for (var i in t) console.log(t[i]); | |
} | |
var obj1 = Object.create(null); | |
obj1[1] = "2"; | |
obj1[3] = "4"; | |
var obj2 = Object.create(null); | |
obj2.__proto__ = obj1; |
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> | |
<html> | |
<head> | |
<script> | |
function PolygonTracker() { | |
this.polygons = []; | |
this.currentPoints = []; | |
this.oddEvenRule = false; | |
this.APPROX_SECTIONS = 50; | |
} |
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
# list branches from origin | |
git branch -r | grep "origin/" | |
# show branches that are merge in the specific tree | |
git branch -r --contains origin/branchname | grep "mozilla/master" | |
# delete branch | |
git push origin :branchname |
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> | |
<html> | |
<head> | |
<script> | |
function strokeToPath(cmds, options) { | |
var CURVE_APPROX_POINTS = 10; | |
var CAP_APPROX_POINTS = 10; | |
function pushCurveApprox(points, args) { | |
var x0 = points[points.length - 1].x; | |
var y0 = points[points.length - 1].y; |
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> | |
<html> | |
<body> | |
<script> | |
function const_(val) { | |
return { value: val, writable: false, enumerable: true, configurable: true }; | |
} | |
function prop_(get, set) { | |
return { get: get, set: set, enumerable: true, configurable: true }; | |
} |
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
[alias] | |
github-try = !sh -c 'git fetch https://github.com/$0/pdf.js.git $1 && git checkout FETCH_HEAD' |
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> | |
<html> | |
<head> | |
<title></title> | |
<script> |
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
diff --git a/browser/extensions/pdfjs/content/build/pdf.js b/browser/extensions/pdfjs/content/build/pdf.js | |
index acf7951..cb0bff7 100644 | |
--- a/browser/extensions/pdfjs/content/build/pdf.js | |
+++ b/browser/extensions/pdfjs/content/build/pdf.js | |
@@ -20432,17 +20432,17 @@ Type1Font.prototype = { | |
} | |
}; | |
var CFFFont = (function CFFFontClosure() { | |
function CFFFont(file, properties) { |
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
diff --git a/src/fonts.js b/src/fonts.js | |
index fb5f541..fdde476 100644 | |
--- a/src/fonts.js | |
+++ b/src/fonts.js | |
@@ -5514,6 +5514,16 @@ var Type1Font = function Type1Font(name, file, properties) { | |
this.charstrings = charstrings; | |
this.data = this.wrap(name, type2Charstrings, this.charstrings, | |
subrs, properties); | |
+ | |
+ // creating Type1 binary file |
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> | |
<html> | |
<head> | |
<script> | |
function CalcDigits(stdlib) { | |
"use asm"; | |
function howMany(n, digit) { | |
n = n|0; | |
digit = digit|0; |