Skip to content

Instantly share code, notes, and snippets.

View deavial's full-sized avatar
😈
Up to no good, probably.

Deavial deavial

😈
Up to no good, probably.
View GitHub Profile
@deavial
deavial / webconfig-anti-quirks.xml
Created May 21, 2014 15:47
web.config setting to prevent IE from rendering quirks on intranet zone.
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=edge,Chrome=IE9" />
</customHeaders>
</httpProtocol>
</system.webServer>
@deavial
deavial / log
Created May 21, 2014 15:57 — forked from stefanoortisi/log
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
@deavial
deavial / thunderflurry-cla.md
Last active March 28, 2016 20:12
thunderflurry cla

Individual Contributor License Agreement v3.1

Thank you for Your interest in the ThunderFlurry Foundation. This document clarifies the terms under which You, the person listed below, may make Contributions — which may include without limitation, software, bug fixes, configuration changes, documentation, art work, creative design, video, or any other materials — to any of the projects owned or managed by the ThunderFlurry Foundation.

Please complete information about You and the Contributions. If You have questions about these terms, please contact us at legal@cinecove.com.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the ThunderFlurry Foundation. Except for the license granted herein to the ThunderFlurry Foundation, You reserve all right, title, and interest in and to Your Contributions.

Licenses

@deavial
deavial / SAP_CLA
Created March 19, 2016 01:09 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
###SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwid
@deavial
deavial / defunctr-cla
Created April 14, 2016 16:45
defunctr cla
**Individual Contributor License Agreement v3.0**
Thank you for Your interest in the Defunctr Open Source Project. This document clarifies the terms under which You, the person listed below, may make Contributions — which may include without limitation, software, bug fixes, configuration changes, documentation, art work, creative design, video, or any other materials — to any of the projects owned or managed by Cinecove Digital.
[Please complete information about You and the Contributions](#void). If You have questions about these terms, please contact us at [legal@cinecove.com](mailto:legal@cinecove.com).
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Defunctr Open Source Project. Except for the license granted herein to the Defunctr Open Source Project, You reserve all right, title, and interest in and to Your Contributions.
**Licenses**
@deavial
deavial / JavascriptModulePatterns
Created June 3, 2016 03:41 — forked from ShMcK/JavascriptModulePatterns
Javascript (ES5) Module Patterns
'use strict';
// 1. Revealing Module Pattern
var revModule = function (param) {
return {
// public
funk: funk
};
// private
@deavial
deavial / Enhance.js
Created September 13, 2017 08:35 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
# List users by average and maximum session length.
SELECT person, max(client.runtime_ms), avg(client.runtime_ms)
FROM item_occurrence
GROUP BY 1
ORDER BY 2 DESC
# List active date ranges for each deploy.
SELECT client.javascript.code_version, min(timestamp), max(timestamp)
FROM item_occurrence
GROUP BY 1
el.set('contentEditable', true)
.addEvents({
keydown: function(e){ if (e.key == 'enter') e.preventDefault(); },
keypress: function(e){ if (e.event.which == 0 && e.code == 13) e.preventDefault(); },
blur: function(){ var text = this.get('text'); this.set('text', text); }
});
@deavial
deavial / umd.js
Created October 4, 2021 20:23
umd template
(function (root, factory) {
var name = "FooMod";
var deps = ["this", "that", "whatnot"];
if (typeof exports === "object") {
module.exports = factory.apply(undefined, deps.map(function (d) { return require(d); }));
} else if (typeof define === "function" && define.amd) {
define(deps, factory);
} else {