Skip to content

Instantly share code, notes, and snippets.

@methyl
methyl / index.css
Last active November 21, 2017 13:00
.slide {
display: none
}
.slide:target {
display: block
}

Keybase proof

I hereby claim:

  • I am methyl on github.
  • I am methyl (https://keybase.io/methyl) on keybase.
  • I have a public key ASASSGllDz_GfWlXwGXQhH1csh73S_Ok6JfzkINwjpnx9Ao

To claim this, I am signing this object:

<body cz-shortcut-listen="true">
<script src="//assets.codepen.io/assets/common/stopExecutionOnTimeout-53beeb1a007ec32040abaf4c9385ebfc.js"></script><script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script>$('document').ready(function () {
$('<meta property="og:title" content="The Rock" />').appendTo('head');
});
//# sourceURL=pen.js
</script>
</body>
@methyl
methyl / csp.patch
Created August 9, 2016 16:02
Chrome CSP application patch
--- a/extensions/common/manifest_handlers/csp_info.cc
+++ b/extensions/common/manifest_handlers/csp_info.cc
@@ -32,21 +32,8 @@ const char kDefaultContentSecurityPolicy[] =
"'self' blob: filesystem: data: chrome-extension-resource:"
const char kDefaultPlatformAppContentSecurityPolicy[] =
- // Platform apps can only use local resources by default.
- "default-src 'self' blob: filesystem: chrome-extension-resource:;"
- // For remote resources, they can fetch them via XMLHttpRequest.
- " connect-src * data: blob: filesystem:;"
function spiral(n) {
var array = [];
for (var i = 0; i < n; i++) {
array[i] = [];
for (var j = 0; j < n; j++) {
array[i][j] = 0;
}
}
function stroke(ary, start, last){
@methyl
methyl / squerb.sh
Created November 6, 2014 12:49
Squerb Foundation helper functions
## squerb
update_foundation () {
git stash save -q 'tmp_sqrb_foundation_stash'
bundle update squerb_foundation && git add Gemfile.lock && git commit -m 'update squerb_foundation'
RESULT=`git stash list | grep tmp_sqrb_foundation_stash`
if [ -n "$RESULT" ]; then
git stash pop
fi
}
local_foundation () { sed -i.bak "s/github: 'squerb\/squerb_foundation'/path: '..\/squerb_foundation'/g" Gemfile && rm Gemfile.bak && bundle && restart }
{
"name": "flare",
"children": [
{
"name": "analytics",
"children": [
{
"name": "cluster",
"children": [
{"name": "AgglomerativeCluster", "size": 3938},