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
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
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
/*! | |
* isVis - v0.5.5 Aug 2011 - Page Visibility API Polyfill | |
* Copyright (c) 2011 Addy Osmani | |
* Dual licensed under the MIT and GPL licenses. | |
*/ | |
(function () { | |
window.visibly = { | |
b: null, | |
q: document, |
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
{ | |
"default_line_ending": "unix", | |
"detect_indentation": false, | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", |
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 bcrypt = require('bcrypt') | |
var Db = require('mongodb').Db; | |
var Server = require('mongodb').Server; | |
var dbPort = 27017; | |
var dbHost = global.host; | |
var dbName = 'login-testing'; | |
// use moment.js for pretty date-stamping // |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Examples</title> | |
<meta name="description" content=""> | |
<meta name="keywords" content=""> | |
<link href="" rel="stylesheet"> | |
</head> |
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
Mapping file: | |
<?php namespace SKUP\Entity; | |
/** | |
* @Entity @Table(name="applications") | |
*/ | |
class Application | |
{ | |
/** |
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
{ | |
// save before running commands | |
"save_first": true, | |
// if present, use this command instead of plain "node" | |
// e.g. "/usr/bin/node" or "C:\bin\node.exe" | |
"node_command": false, | |
// Same for NPM command | |
"npm_command": false, | |
"expert_mode": 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
tx@inv0:~$ pida | |
Traceback (most recent call last): | |
File "/usr/local/bin/pida", line 4, in <module> | |
import pkg_resources | |
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2671, in <module> | |
working_set.require(__requires__) | |
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 654, in require | |
needed = self.resolve(parse_requirements(requirements)) | |
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve | |
raise DistributionNotFound(req) |