I hereby claim:
- I am revelt on github.
- I am revelt (https://keybase.io/revelt) on keybase.
- I have a public key ASAH0_RTw862CWkRjbModkDfOvXEMABtCJZ3vPhDph9G3Qo
To claim this, I am signing this object:
<html> | |
<style> | |
{% if something %} | |
.z { | |
display: block; | |
} | |
{% endif %} | |
<body> | |
<table width="100" border="0" cellpadding="0" cellspacing="0"> |
var os = require("os"); | |
//Create function to get CPU information | |
function cpuAverage() { | |
//Initialise sum of idle and time of cores and fetch CPU info | |
var totalIdle = 0, totalTick = 0; | |
var cpus = os.cpus(); | |
//Loop through CPU cores |
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>strip HTML</title> | |
<style type="text/css"> | |
* { | |
padding: 0; | |
margin: 0; | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>vml test</title> | |
</head> | |
<body> | |
<center> | |
<table width="120" border="0" cellpadding="0" cellspacing="0" align="center"> | |
<tr> |
I hereby claim:
To claim this, I am signing this object:
Douglas Crockford, author of JavaScript: The Good parts, recently gave a talk called The Better Parts, where he demonstrates how he creates objects in JavaScript nowadays. He doesn't call his approach anything, but I will refer to it as Crockford Classless.
Crockford Classless is completely free of class, new, this, prototype and even Crockfords own invention Object.create.
I think it's really, really sleek, and this is what it looks like:
function dog(spec) {
/** | |
* Using Operator Mono in Atom | |
* | |
* 1. Open up Atom Preferences. | |
* 2. Click the “Open Config Folder” button. | |
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up. | |
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden! | |
* 5. Tweak away. | |
* | |
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png): |
<a href="/categories/{{ $name | urlize }}">{{ replace $name "-" " " }}</a> |
a | |
abi | |
abidvi | |
abiejose | |
abiejų | |
abiejuose | |
abiem | |
abipus | |
abu | |
abudu |
/* This is a technique to lazy load your javascript files | |
* Handy for those pesky slow, load blocking off-site scripts | |
* function lazyLoad | |
* @s: String of path to file | |
*/ | |
function lazyLoad(s) { | |
var d = window.document; | |
var b = d.body; /* appends at end of body, but you could use other methods to put where you want */ | |
var e = d.createElement('script'); |