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
WAYLAND_PROTOCOLS=/usr/share/wayland-protocols | |
# wayland-scanner is a tool which generates C headers and rigging for Wayland | |
# protocols, which are specified in XML. wlroots requires you to rig these up | |
# to your build system yourself and provide them in the include path. | |
xdg-shell-protocol.h: | |
wayland-scanner server-header \ | |
$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ | |
xdg-shell-protocol.c: xdg-shell-protocol.h |
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
func byteMachine(l int) []byte { | |
var byte1024 = []byte{230, 225, 70, 140, 19, 33, 53, 107, 97, 54, 151, 254, 181, 73, 233, 11, 1, 44, 248, 104, 2, 250, 200, 23, 150, 25, 61, 217, 213, 205, 75, 220, 24, 129, 231, 70, 123, 47, 224, 41, 98, 227, 147, 10, 204, 223, 11, 107, 19, 102, 96, 104, 90, 131, 35, 253, 202, 234, 7, 152, 53, 227, 215, 95, 4, 89, 209, 62, 190, 33, 141, 244, 172, 150, 150, 183, 31, 22, 109, 187, 222, 29, 84, 22, 129, 137, 236, 75, 209, 125, 87, 148, 122, 129, 231, 5, 2, 88, 32, 161, 83, 129, 71, 247, 118, 150, 52, 203, 233, 71, 70, 170, 241, 16, 201, 86, 118, 53, 216, 15, 114, 180, 41, 35, 2, 113, 135, 104, 230, 213, 72, 115, 122, 70, 213, 129, 212, 67, 104, 231, 30, 44, 196, 241, 69, 244, 52, 48, 21, 99, 105, 221, 79, 103, 52, 115, 203, 100, 4, 18, 240, 6, 49, 216, 244, 184, 217, 115, 116, 245, 254, 91, 222, 201, 177, 151, 6, 56, 156, 157, 65, 139, 18, 106, 104, 200, 240, 144, 70, 37, 158, 52, 128, 239, 215, 118, 212, 175, 203, 59, 179, 213, 141, 159, 234, 177, 67, 54, 234, 237, 92, 17, 66, |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type unlocked struct { | |
i int | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am jakschu on github. | |
* I am jakschu (https://keybase.io/jakschu) on keybase. | |
* I have a public key whose fingerprint is CD1A 574F D607 39C2 D903 79AB 2E6E 5D7C CF0B 4208 | |
To claim this, I am signing this object: |
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
/** | |
* CAT | |
*/ | |
*, *::before, *::after { | |
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; | |
} | |
.meow { | |
margin: 0.5em auto 0; |
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() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
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() { | |
var hidden = "hidden"; | |
// Standards: | |
if (hidden in document) | |
document.addEventListener("visibilitychange", onchange); | |
else if ((hidden = "mozHidden") in document) | |
document.addEventListener("mozvisibilitychange", onchange); | |
else if ((hidden = "webkitHidden") in document) | |
document.addEventListener("webkitvisibilitychange", onchange); |
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
if(Meteor.isClient){ | |
// set Session variable in method callback | |
Meteor.call('myMeteorMethod', "foo", function(error, result){ | |
Session.set('myMethodResult', result); | |
}); | |
// use reactive Session variable in helper | |
Template.myTemplate.helpers({ | |
myHelper: function(){ |
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
if(Meteor.isServer){ | |
Meteor.methods({ | |
myMeteorMethod: function() { | |
// load Future | |
Future = Npm.require('fibers/future'); | |
var myFuture = new Future(); | |
// call the function and store its result | |
SomeAsynchronousFunction("foo", function (error,results){ |
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 a() { | |
document.write("inside a.\n"); | |
return d; | |
} | |
try { | |
a(); | |
} catch (e) { | |
document.write("<p>" + e.stack + "</p>"); | |
// or console.log(e.stack); | |
} |
NewerOlder