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 <stdio.h> | |
typedef struct { | |
int foo; | |
int bar; | |
int qux; | |
} important_t; | |
void safelyPrintImportant(important_t imp[static 1]) { | |
printf("%d %d %d\n", imp->foo, imp->bar, imp->qux); | |
} |
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
float round_float_to_4(float inputval[static 4]); |
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
typedef struct { | |
int foo; | |
int bar; | |
int qux; | |
} important_t; | |
void safelyPrintImportant(important_t *imp) { | |
printf("%d %d %d\n", imp->foo, imp->bar, imp->qux); | |
} |
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
// ~ 120k log op/s | |
(function() { | |
var originalArrayValueOf = Array.prototype.valueOf; | |
var logs = {}; | |
var index = 1; | |
function hasher(str) { | |
var target = Array.from(str); | |
target.length > 16 && (target = target.slice(0, 16)); // perf: avoid alloc | |
return target | |
.reduce(function(acc, i) { |
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
function hasher(str) { | |
return Array | |
.from(str) | |
//.slice(0, 10) | |
.reduce(function(acc, i) { | |
return 0xffffffff & ((acc << 5) - acc) + i.charCodeAt(0); }, 0); | |
} |
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
Array.prototype.valueOf = function() { console.log('bar', this); return this; } |
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
(function() { | |
var oldValueOf = Array.prototype.valueOf; | |
Array.prototype.valueOf = function() { | |
if (oldValueOf.call(this) === -1) { | |
console.log('bar'); return -1; | |
} else { | |
return oldValueOf.call(this); | |
} | |
} | |
})() |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
</head> | |
<body> | |
<div class="container"> | |
<nav class="navigation"> | |
<ul> | |
<li> |
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
{-# OPTIONS_HADDOCK hide #-} | |
-- | Data | |
module Graphics.Gloss.Internals.Data.Blend | |
( BlendMode (..) | |
, blendModeFromComponents ) | |
where | |
import qualified Graphics.Rendering.OpenGL.GL as GL | |
data BlendEquationMode |
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
VERSION "HIPBNYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY/4/%%%/4/'%**4YYY///" | |
NS_ : | |
NS_DESC_ | |
CM_ | |
BA_DEF_ | |
BA_ | |
VAL_ | |
CAT_DEF_ |