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 nodeio = require('node.io'); | |
exports.job = new nodeio.Job({ | |
input: process.argv.splice(3), | |
run: function(domain) { | |
var self = this; | |
try { //make sure it is a url | |
self.assert(domain).isUrl(); | |
this.getHtml(domain, function(err, $) { | |
if (err) { | |
if (err === "redirects") { |
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 jsdom = require('jsdom'); | |
jsdom.env('http://engadget.com', [ | |
'http://code.jquery.com/jquery-1.5.min.js'], function(errors, window) { | |
var $ = window.$; | |
if (errors) { | |
console.log(errors); | |
} |
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
#watch-discussion { | |
display: none; | |
} | |
#watch-sidebar { | |
display: none; | |
} | |
#footer { | |
display: none; | |
} | |
#footer-container { |
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
jQuery source used | |
/*! | |
* jQuery JavaScript Library v1.4.2 | |
* http://jquery.com/ | |
* | |
* Copyright 2010, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* |
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
➜ ~ brew install -v clisp | |
==> Downloading http://ftpmirror.gnu.org/clisp/release/2.49/clisp-2.49.tar.bz2 | |
File already downloaded in /Users/pdk/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/pdk/Library/Caches/Homebrew/clisp-2.49.tar.bz2 | |
==> Downloading patches | |
/usr/bin/curl -qf#LA Homebrew 0.8.1 (Ruby 1.8.7-249; Mac OS X 10.7.2) https://svn.macports.org/repository/macports/!svn/bc/89054/trunk/dports/lang/clisp/files/patch-src_lispbibl_d.diff -o 001-homebrew.diff | |
######################################################################## 100.0% | |
==> Patching | |
/usr/bin/patch -f -p0 -i 001-homebrew.diff | |
patching file src/lispbibl.d |
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 D = document, | |
Db = D.body; | |
function De(x) { return D.createElement(x); } | |
function Dt(x) { return D.createTextNode(x); } | |
function Da(x) { return Db.appendChild(x); } | |
function Dr(x) { return Db.removeChild(x); } | |
function Dg(x) { return document.getElementById(x); } | |
var s = De('style'), | |
ss = s.styleSheet, | |
vendors = ['-moz-','-ms-','-webkit-', ''], |
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
^(?:(?:\+?1\s*(?:[.-]\s*)?)?(\()?(?:(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])(\))?\s*)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})$ |
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
((?=.*\d)(?=(.*[!#$%&()*+,-./:;<=>?@[\]\^_`{|}~]){2,}).{8,20}) |
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
13:28:51,773 DEBUG MDCMAuthenticationProvider:49 - Authenticating User: admin | |
13:28:51,773 DEBUG MDCMAuthenticationProvider:50 - calling loginAndSaveUserIdAndSessionToken | |
13:28:51,783 DEBUG WebServiceTemplate:110 - Opening [org.springframework.ws.transport.http.HttpUrlConnection@6ff80c0e] to [http://localhost:8080/MDCMWebServices/messages/] | |
13:28:51,849 DEBUG sent:579 - Sent request [SaajSoapMessage {http://www.mdcm.com/schema}loginAndSaveSessionTokenRequest] | |
13:28:51,873 DEBUG TransportUtils:48 - Could not close WebServiceConnection | |
java.net.ConnectException: Connection refused | |
at java.net.PlainSocketImpl.socketConnect(Native Method) | |
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) | |
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) | |
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) |
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
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;} | |
.a { color: #FBFBFB; font-family: sans-serif; width: 40px; display: inline-block; margin: 0; padding-top: 1px; height: 20px; vertical-align: top; margin: 0 -4px; text-shadow: 0 1px 0 black; border-radius: 3px;} | |
.b { position: relative; left: 20px; width: 100px; margin: 0 -100px 0 0; padding: 0; opacity: 0} | |
label { text-align: center;} | |
#toggle-1 { -webkit-transition: margin 0.2s ease-in-out;} | |
#toggleLabel { background-color: #2d4266; margin-right: -5px; border-top-right-radius: 0; border-bottom-right-radius: 0;} | |
#toggle-1:checked { margin-left: -65%} | |
#switch { height: 20px; margin: 0; padding: 0; margin: 0; border: 1px solid #d1d1d1; background: lightgray; background-color: #a7a7a7; background-image: -webkit-gradient(linear, left top, left bottom, from(#a7a7a7), to(#FBFBFB)); /* Saf4+, Chrome */ background-image: -webkit- |
OlderNewer