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
module.exports = { | |
isFizz: function(n){ | |
return !(n % 3) && (n % 5); | |
} | |
,isBuzz: function(n){ | |
return !(n % 5) && (n % 3); | |
} | |
,isFizzBuzz: function(n){ | |
return (!(n % 3) && !(n % 5)); | |
} |
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
#!/usr/bin/env node | |
var net = require('net'), | |
host = 'localhost', | |
start = 1, | |
end = 10000, | |
timeout = 15000; | |
while ( start <= end ) { | |
var port = start; |
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
var page = new WebPage(), | |
address, output, size; | |
address = "http://www.metachunk.com/"; | |
width = 1024; height = 600; | |
output = "./screenshots/wat-"+width+"X"+height+".png"; | |
page.viewportSize = { width: width, height: height }; | |
if (phantom.args.length === 3 && phantom.args[1].substr(-4) === ".pdf") { |
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
<?php | |
require_once('MongoFactory.php'); | |
class MongoActiveRecord extends MongoFactory{ | |
private $model; | |
private $statement; | |
private $class; | |
private $className; |
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
<section id="info"> | |
<header> | |
<hgroup> | |
<h1>FoldScroll</h1> | |
<h2>Experimental CSS 3D scroll behavior</h2> | |
</hgroup> | |
<a href="https://github.com/soulwire/FoldScroll/zipball/master">Download</a> | |
<a href="https://github.com/soulwire/FoldScroll">View on Github</a> | |
</header> | |
<aside> |
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
<body class="opening hide-UI view-2D zoom-large data-close controls-close"> | |
<div id="navbar"> | |
<a id="toggle-data" href="#data"><i class="icon-data"></i>Data</a> | |
<h1>3D CSS Solar System</h1> | |
<a id="toggle-controls" href="#controls"><i class="icon-controls"></i>Controls</a> | |
</div> | |
<div id="data"> | |
<a class="sun" title="sun" href="#sunspeed">Sun</a> | |
<a class="mercury" title="mercury" href="#mercuryspeed">Mercury</a> | |
<a class="venus" title="venus" href="#venusspeed">Venus</a> |
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
.element{ | |
// properties | |
width: 100%; | |
height: 50px; | |
// mixins | |
.verticalGradient(#ffffff, #000000); | |
.boxSizing(); | |
// modifiers | |
&.small{ |
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
<!-- Fonte: mussumipsum.com --> | |
<snippet> | |
<content><![CDATA[ | |
Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis. | |
Suco de cevadiss, é um leite divinis, qui tem lupuliz, matis, aguis e fermentis. Interagi no mé, cursus quis, vehicula ac nisi. Aenean vel dui dui. Nullam leo erat, aliquet quis tempus a, posuere ut mi. Ut scelerisque neque et turpis posuere pulvinar pellentesque nibh ullamcorper. Pharetra in mattis molestie, volutpat elementum justo. Aenean ut ante turpis. Pellentesque laoreet mé vel lectus scelerisque interdum cursus velit auctor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac mauris lectus, non scelerisque augu |
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
<?php | |
/** | |
* PHPExcel | |
* | |
* Copyright (C) 2006 - 2012 PHPExcel | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. |
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
<!doctype html> | |
<html> | |
<body> | |
<header role="banner"> | |
<a href="/" rel="home">My company</a> | |
<nav role="navigation"> | |
<a href="/about">About</a> | |
<a href="/contact">Contact</a> | |
</nav> | |
</header> |