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
#include "API.h" | |
namespace APIPackage-- { | |
void API::API() | |
// don't delete the following line as it's needed to preserve source code of this autogenerated element | |
// section 127-0-0-1--24a8b1be:142d267687f:-8000:0000000000000BDD begin |
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
0 1 1 0 1 4 1 6 1 1 8 5 5 7 0 0 3 15 12 6 1 10 20 11 8 24 23 3 18 22 6 3 32 26 12 9 12 3 37 12 39 41 21 23 38 34 30 1 16 34 29 8 24 6 3 47 12 19 33 31 31 11 50 38 25 64 1 8 39 4 47 69 67 52 50 63 2 20 32 76 49 55 11 67 5 73 25 4 29 76 60 79 15 5 47 81 82 24 28 96 45 39 24 29 54 28 13 17 29 10 88 87 16 73 42 65 23 7 28 23 76 27 121 38 106 4 61 85 28 6 31 55 18 17 93 63 112 15 131 90 23 129 86 9 20 99 20 80 48 131 98 63 1 48 94 131 63 144 66 149 31 73 0 95 14 154 17 88 28 111 63 141 67 121 112 91 7 114 18 63 39 69 18 70 145 15 82 109 73 61 95 113 55 147 144 123 162 127 87 156 50 123 17 89 162 59 123 51 66 41 51 126 148 128 28 72 140 31 106 18 13 209 100 88 201 223 16 222 94 10 221 8 119 168 105 107 65 193 23 206 70 121 108 132 208 211 79 20 189 53 73 158 0 114 161 151 |
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
/* Downloads tracking */ | |
jQuery(function() { | |
var dlr = /\.(?!html?|php)(\w{1,4})$/ | |
jQuery('a').click(function() { | |
var m | |
if (typeof(ga) == 'function' && (m = dlr.exec(this.href))) { | |
ga('send', 'event', 'download', m[1], this.href) | |
} | |
}) |
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
; Full Screen Window | |
^+a:: | |
WinSet, Style, -0xC00000,a ; remove the titlebar and border(s) | |
WinMove, a, , 0, 0, 1280, 1024 ; move the window to 0,0 and resize it | |
return |
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
Prism.languages.map = { | |
'comment': { | |
pattern: /(^|[^\\])(\/\*[\w\W]*?\*\/|\/\/.*?(\r?\n|$))/g, | |
lookbehind: true | |
}, | |
'keyword': /\b(map|overlay|point)\b/g, | |
'property': /\b(mat|tex|x|y|wdt|hgt|algo|zoomX|zoomY|ox|oy|a|b|turbulence|rotate|invert|seed|loosebounds|mask|grp|sub|lambda)\b/g, | |
'attr-name': /\b(solid|random|checker|bozo|sin|boxes|rndchecker|lines|border|mandel|rndall|script|poly)\b/g, | |
'number': /\b-?\d+(%|px\b|\b)/g, | |
'operator': /&|\||\^|=/g, |
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
Dir.glob '*.lnk' do |file| | |
content = File.read file, mode: 'rb' | |
# You might need a different regex. | |
result = content.match(/C:[\w\\ ]+\.\w+/) | |
if result | |
target = result[0] | |
`cmd /c mklink "#{File.basename(target)}" "#{target}"` | |
else | |
puts 'Error in ' + file |
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
<?php | |
// http://developers.whatwg.org/sections.html | |
$def->addElement('section', 'Block', 'Flow', 'Common'); | |
$def->addElement('nav', 'Block', 'Flow', 'Common'); | |
$def->addElement('article', 'Block', 'Flow', 'Common'); | |
$def->addElement('aside', 'Block', 'Flow', 'Common'); | |
$def->addElement('header', 'Block', 'Flow', 'Common'); | |
$def->addElement('footer', 'Block', 'Flow', 'Common'); |
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
$('head').append('\ | |
<link href="http://clonkforge.net/style/clonkforge.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/style/text.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/style/admin.css" type="text/css" rel="stylesheet"/>\ | |
<link rel="stylesheet" type="text/css" href="http://clonkforge.net/style/markitup/style.css"/>\ | |
<link href="http://clonkforge.net/style/lytebox.css" type="text/css" rel="stylesheet"/>\ | |
<link href="style.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/includes/js/codemirror/codemirror.css" type="text/css" rel="stylesheet"/>\ | |
<link href="http://clonkforge.net/includes/js/codemirror/theme/default.css" type="text/css" rel="stylesheet"/>\ | |
') |
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
<!doctype html> | |
<title>Tabs!</title> | |
<style> | |
p { | |
display: none; | |
} | |
p#tabs, p:target { |
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
package main | |
import "io" | |
import "time" | |
func copySleep(dst io.Writer, src io.Reader, delay int, progress func(written int64)) (written int64, err error) { | |
// If the writer has a ReadFrom method, use it to do the copy. | |
// Avoids an allocation and a copy. | |
if rt, ok := dst.(io.ReaderFrom); ok { | |
return rt.ReadFrom(src) |