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
#!/bin/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
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
define (['knockout', 'jquery', 'prettyDate', 'metrojs'], function ( ko, $ ) { | |
"use strict"; | |
// See https://github.com/SteveSanderson/knockout/wiki/Bindings---class | |
ko.bindingHandlers['class'] = { | |
'update' : function ( element, valueAccessor ) { | |
if ( element['__ko__previousClassValue__'] ) { | |
ko.utils.toggleDomNodeCssClass (element, element['__ko__previousClassValue__'], false); | |
} | |
var value = ko.utils.unwrapObservable (valueAccessor ()); |
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
define (['knockout', 'jquery', 'prettyDate', 'metrojs'], function ( ko, $ ) { | |
"use strict"; | |
// See https://github.com/SteveSanderson/knockout/wiki/Bindings---class | |
ko.bindingHandlers['class'] = { | |
'update' : function ( element, valueAccessor ) { | |
if ( element['__ko__previousClassValue__'] ) { | |
ko.utils.toggleDomNodeCssClass (element, element['__ko__previousClassValue__'], false); | |
} | |
var value = ko.utils.unwrapObservable (valueAccessor ()); |
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
(?x) | |
\b | |
( # Capture 1: entire matched URL | |
(?: | |
[\w-]+: # URL protocol and colon | |
(?: | |
/{1,3} # 1-3 slashes | |
| # or | |
[[:alpha:][:digit:]] # Single letter or digit | |
# (Try not to match, say "URI::Escape") |
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
select * from html where url ="http://uk.movies.yahoo.com/cinemas/index.html?mid=&cid=3266&sp=mov&zip=me13er" and xpath="//div[@class='cintbl']/table[@class='timetable']" |