⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
# brew install httpie htmlq wget | |
http "https://www.weichert.com/xxxx/" | htmlq -a "src" "#pdp-photos .pdp-photo[onerror='fix(this)']" | awk '{print "https:" $0}' | xargs wget | |
http "https://www.weichert.com/xxxx/" | htmlq -a "data-lazy" "#pdp-photos .pdp-photo" | awk '{print "https:" $0}' | xargs wget |
/* | |
Open up vertical photo gallery and scroll all the way to the bottom | |
*/ | |
const script33 = document.createElement('script'); | |
script33.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
script33.onload = () => { | |
$ = jQuery.noConflict(); |
// Intercepting HTTP calls with AngularJS. | |
angular.module('MyApp', []) | |
.config(function ($provide, $httpProvider) { | |
// Intercept http calls. | |
$provide.factory('MyHttpInterceptor', function ($q) { | |
return { | |
// On request success | |
request: function (config) { | |
// console.log(config); // Contains the data about the request before it is sent. |
/* Simple JavaScript Inheritance for ES 5.1 ( includes polyfill for IE < 9 ) | |
* based on http://ejohn.org/blog/simple-javascript-inheritance/ | |
* (inspired by base2 and Prototype) | |
* MIT Licensed. | |
*/ | |
(function (global) { | |
"use strict"; | |
if (!Object.create) { | |
Object.create = (function () { |
#! /bin/sh | |
# | |
# autossh init.d This script starts and stops an autossh daemon | |
# | |
# chkconfig: 2345 95 15 | |
# processname: autossh | |
# | |
# Original Author: Andreas Olsson <[email protected]> | |
# Version: @(#)autossh_tunnel.foo 0.1 27-Aug-2008 [email protected] | |
# |
Make sure you installed Hombrew PHP with --with-mssql
You can check using a command like below:
/usr/local/opt/php53/bin/php -i | grep Configure
When I pointed my apache to the homebrew version of php, it was already configured to have the mssql and freetds libraries working, otherwise you may have to add the .so file in the freetds directory to your php.ini file
Then I just had to something like this to my freetds.conf:
[my_mssql_server]
Collection of links from HN submission: https://news.ycombinator.com/item?id=5392984
Some have commented that the [linked article][1] may not always contain best practices. The following links always seem to get fantastic praise - they're permanently in my JS bookmarks. Having an understanding of the core language rather than using frameworks is a great start; these articles will certainly help.
- Eloquent JavaScript: http://eloquentjavascript.net/contents.html
- Learning JavaScript Design Patterns: http://addyosmani.com/resources/essentialjsdesignpatterns/book/
▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀ | |
HANDPICKED JQUERY PLUGINS REPOSITORY CDN URLS | |
POWERED BY MAXCDN | |
▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀ | |
Following the down-time of Godaddy, you will now have to update the previous URLs. | |
It is much more safer to link to the raw CDN URL. |
If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0
phantomjs:
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.local
goutte: ~
selenium2:
wd_host: "http://localhost:8643/wd/hub"