This file contains hidden or 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
<div id="confirmation" title="Confirm action" style="display: none;"> | |
<p>Are you sure?</p> | |
</div> | |
<script> | |
/* Reusable dialog with deferreds | |
* | |
* Example: | |
* $.modalConfirmation() | |
* .then(function() { console.log('success'); }) |
This file contains hidden or 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
var $container = $('#svg-container'), | |
// Canvg requires trimmed content | |
content = $container.html().trim(), | |
canvas = document.getElementById('svg-canvas'); | |
// Draw svg on canvas | |
canvg(canvas, content); | |
// Change img be SVG representation | |
var theImage = canvas.toDataURL('image/png'); |
This file contains hidden or 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/vendor/exporting.src.js b/vendor/exporting.src.js | |
index d75f7da..75489a2 100644 | |
--- a/vendor/exporting.src.js | |
+++ b/vendor/exporting.src.js | |
@@ -335,13 +335,15 @@ extend(Chart.prototype, { | |
exportChart: function (options, chartOptions) { | |
options = options || {}; | |
var chart = this, | |
chartExportingOptions = chart.options.exporting, |
This file contains hidden or 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
/** | |
* The ColumnRangeSeries class | |
*/ | |
defaultPlotOptions.columnrange = merge(defaultPlotOptions.column, defaultPlotOptions.arearange, { | |
lineWidth: 1, | |
pointRange: null | |
}); | |
/** | |
* ColumnRangeSeries object |
This file contains hidden or 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
ㅡid = (f) -> f | |
ㅡmemoize = (f) -> | |
window._vals = {} | |
(args...) -> | |
_args = args.join 'ㅡ' | |
if _args of _vals | |
return _vals[_args] | |
val = f args... | |
_vals[_args] = val |
This file contains hidden or 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
_r.directive 'obfuscateEmail', -> | |
scope: | |
email: '=' | |
link: (scope, element) -> | |
rnd = Math.random().toString(36).substr(2,3) | |
re = /@/ | |
obfuscated = scope.email?.replace re, "<span class=\"obfuscate\">#{rnd}</span>$&" | |
element.html obfuscated |
This file contains hidden or 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
# scope to url query part mapping ( #!/?key=val ) | |
queryMapping = | |
category: 'cat' | |
searchQuery: 'q' | |
'selected.id': 'show' | |
query = $location.search() | |
for key, queryKey of queryMapping | |
# initially set scope values to query params | |
if queryKey of query | |
$scope[key] = query[queryKey] |
This file contains hidden or 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
justified ~/dev/keylayout-test % php workman.php raamattu1992.txt | |
QWERTY: 6213088 | |
Asset: 3331671 | |
Capewell: 3662800 | |
Colemak: 3700533 | |
Dvorak: 4309852 | |
Klausler: 3587811 | |
Minimak: 4194483 | |
Norman: 3681826 | |
QGMLWY: 4177042 |
This file contains hidden or 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
a = """<p> | |
foo | |
</p>""" | |
b = '''<p> | |
foo | |
</p>''' | |
c = "<p> | |
foo | |
</p>" | |
d = '<p> |
This file contains hidden or 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
Aina | |
Aino | |
Alina | |
Alma | |
Amalia | |
Amanda | |
Anita | |
Anja | |
Anna | |
Anne |
OlderNewer