anwsers.txt:
mysecret
mysecret
n
| namespace Acme\V1\Billing; | |
| // BillableInterface.php | |
| use Laravel\Cashier\BillableInterface as CashierInterface; | |
| interface BillableInterface extends CashierInterface { | |
| } |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| function logToFile($msg) { | |
| $filename = 'logfile.log'; | |
| if(is_array($msg)){ | |
| file_put_contents($filename, print_r($msg, true), FILE_APPEND); | |
| } else { | |
| $fd = fopen($filename, "a"); | |
| $str = "[" . date("Y/m/d h:i:s", mktime()) . "] " . $msg; | |
| fwrite($fd, $str . "\n"); | |
| fclose($fd); |
| input { | |
| height: 34px; | |
| width: 100%; | |
| border-radius: 3px; | |
| border: 1px solid transparent; | |
| border-top: none; | |
| border-bottom: 1px solid #DDD; | |
| box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF; | |
| } |
| // Custom validator method | |
| $.validator.addMethod("valueNotEqualsVal", function(value, element, arg){ | |
| return arg != value; | |
| }, "Value must not equal arg."); | |
| $.validator.addMethod("valueNotEqualsTxt", function(value, element, arg){ | |
| return return arg != jQuery(element).find('option:selected').text(); | |
| }, "Value must not equal arg."); | |
| // Usage |
| (function( $ ){ | |
| jQuery.uaMatch = function( ua ) { | |
| ua = ua.toLowerCase(); | |
| var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || | |
| /(webkit)[ \/]([\w.]+)/.exec( ua ) || | |
| /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || | |
| /(msie) ([\w.]+)/.exec( ua ) || | |
| ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || []; | |
| return { |
| // | |
| // Colour customisation | |
| // | |
| // Border between the header (and footer) and the table body | |
| @table-header-border: 1px solid #111111; | |
| // Border of rows / cells | |
| @table-body-border: 1px solid #dddddd; |
| <?php | |
| // first create a new voice chat room: | |
| $options = array( | |
| 'http' => array( | |
| 'header' => "Content-type: application/x-www-form-urlencoded\r\n", | |
| 'method' => 'POST', | |
| 'content' => http_build_query(array()), | |
| ) |
anwsers.txt:
mysecret
mysecret
n
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {