A starter app with sidenav, icons, tabs, floating action button, and a list of items.
Forked from Angular Material Basic App.
A Pen by Kyle Ledbetter on CodePen.
A starter app with sidenav, icons, tabs, floating action button, and a list of items.
Forked from Angular Material Basic App.
A Pen by Kyle Ledbetter on CodePen.
webpack.mix.js
file in root directory:const { mix } = require('laravel-mix');
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
/* Optional: uncomment for bootstrap fonts */
// mix.copy('node_modules/bootstrap-sass/assets/fonts/bootstrap/','public/fonts/bootstrap');
<!-- HTML heavily inspired by http://blueimp.github.io/jQuery-File-Upload/ --> | |
<div class="table table-striped" class="files" id="previews"> | |
<div id="template" class="file-row"> | |
<!-- This is used as the file preview template --> | |
<div> | |
<span class="preview"><img data-dz-thumbnail /></span> | |
</div> | |
<div> | |
<p class="name" data-dz-name></p> |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
var QUEUE_URL = 'https://sqs.us-east-1.amazonaws.com/{AWS_ACCUOUNT_}/matsuoy-lambda'; | |
var AWS = require('aws-sdk'); | |
var sqs = new AWS.SQS({region : 'us-east-1'}); | |
exports.handler = function(event, context) { | |
var params = { | |
MessageBody: JSON.stringify(event), | |
QueueUrl: QUEUE_URL | |
}; | |
sqs.sendMessage(params, function(err,data){ |
// Codility Bbinary Gap Test | |
function solution($N) { | |
// write your code in PHP5.5 | |
$binaryNumber = decbin($N); // binary conversion of number | |
$trimmed = trim($binaryNumber, 0); // trim to remove trailing zeros | |
$binaryGap = explode("1",$trimmed); // explode | |
$binaryCount = array_map('strlen', $binaryGap); | |
return max($binaryCount); // returns the longest binary gap |
<?php | |
namespace App\Http; | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
*/ |
var Promise = require('bluebird'); | |
var promiseWhile = function(condition, action) { | |
var resolver = Promise.defer(); | |
var loop = function() { | |
if (!condition()) return resolver.resolve(); | |
return Promise.cast(action()) | |
.then(loop) | |
.catch(resolver.reject); |
{ | |
"Version": "2008-10-17", | |
"Id": "0c762de8-f56b-488d-a4a4-20d1cb31df2f", | |
"Statement": [ | |
{ | |
"Sid": "Allow in my domains", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |