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
var Assetgraph = require('assetgraph'); | |
new Assetgraph({ | |
root: 'myProject' | |
}) | |
.logEvents() | |
.lodAssets('index.html') | |
.populate({ | |
followRelations: { crossorigin: false } | |
}) |
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
/* | |
* This transform works on an assumption about browser loading and rendering behavior of CSS: | |
* When a browser loads CSS in <head> it render blocks untill all CSS in <head> has loaded. | |
* | |
* That might be slow. | |
* | |
* To appear faster, browsers will render what they have in buffer already if they meet a style <link> in <body> | |
* before they dive into the render blocking load. | |
* This lets you potentially inline critical css in <head> and put the bulk of your CSS "below the fold". | |
* The effect will be a quick render with critical styles applied, just before the render blockign starts. |
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
var jspm = require('../package.json').jspm; | |
var jsdom = require('jsdom'); | |
var async = require('async'); | |
var chalk = require('chalk'); | |
var express = require('express'); | |
var app = express(); | |
app | |
.get('*.html', function (req, res) { |
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
const { totalCols } = config | |
function crazyCaterpillar(time) { | |
const newLights = new Lights() | |
let dead = []; | |
for (let i = 0; i < 3; i++) { | |
dead.push(Math.round(Math.random() * totalCols)); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
h1 { padding: 50px 200px; border: 3px dotted gray; } | |
h1.drag { background: #123456; cursor: grabbing;} | |
</style> |
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
upstream backends { | |
ip_hash; | |
server 0.0.0.0:80; | |
server 0.0.0.0:80; | |
} | |
server { | |
server_name app.falconsocial.com; |
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
var fs = require('fs'); | |
fs.open('hello-world.txt', 'ax', function (err, fd) { | |
if (err) { | |
console.error(err); | |
} | |
fs.write(fd, new Buffer('hello world'), function (err) { | |
if (err) { | |
console.log('manual', 'noooo'); |
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
[33m ⚠ file:///home/munter/git/epik/dist/lib/components/requirejs/require.js: ENOENT, open '/home/munter/git/epik/dist/lib/components/requirejs/require.js' | |
Including assets: | |
file:///home/munter/git/epik/dist/example/index.html | |
file:///home/munter/git/epik/dist/example/router.html | |
[39m | |
[33m ⚠ file:///home/munter/git/epik/dist/lib/components/requirejs/require.js: ENOENT, open '/home/munter/git/epik/dist/lib/components/requirejs/require.js' | |
Including assets: | |
file:///home/munter/git/epik/dist/example/index.html | |
file:///home/munter/git/epik/dist/example/router.html | |
[39m |
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
.falconeer-profile { | |
.profile { | |
margin-top: 8px; | |
width: 92px; | |
height: 92px; | |
background-repeat: none; | |
} | |
&#ulrik { | |
.profile { background-image: url(/images/falconeers/Ulrik-side.png?sprite=falconeers); } |
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
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |