start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/sh | |
# script for optimizing images in a directory (recursive) | |
# pngcrush & jpegtran settings from: | |
# http://developer.yahoo.com/performance/rules.html#opt_images | |
# pngcrush | |
for png in `find $1 -iname "*.png"`; do | |
echo "crushing $png ..." | |
pngcrush -rem alla -reduce -brute "$png" temp.png |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
// Handle back button issues with Twitter Bootstrap's tab component. | |
// Based on: http://stackoverflow.com/a/10120221/81769 | |
// It has been changed to avoid the following side effects: | |
// - Switching tabs was being added to navigation history which is undesirable | |
// (Worked around this by using location.replace instead of setting the hash property) | |
// - Browser scroll position was lost due to fragment navigation | |
// (Worked around this by converting #id values to #!id values before navigating.) | |
$(document).ready(function () { | |
if (location.hash.substr(0,2) == "#!") { |
You can directly use URLs like this: http://lorempixel.com/400/300/nature/1/
but they will be downloaded every time from the Lorempixum server (they are not cached). For better performance or cache control you may want to save them locally. You can use cURL with its little known syntax for its input and -o
arguments to do it easily.
Save filenames like nature-400x300-5.jpg
:
curl 'http://{lorempixel}.com/{400}/{300}/{nature}/[1-10]/' -o '#4-#2x#3-#5.jpg'
/* | |
Exemples : | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
*/ | |
(function() { | |
Every month I have the challenge of finding two speakers to do a 10 minute lightning talk on something PHP related (even adjacent). The past few months this has become increasingly difficult so I've created my personal wishlist. If you would like to add to this list please leave a message below. If you would like to give one of these lightning talks, please let me know by filling out our submission form: https://nomadphp.com/lightning-talk-submission/
I want to encourage new and veteran speakers. This is a great way for you to get some exposure and show conference organizers what you can do. Veterans can use Lightning Talks to test out new talk ideas or even different slide decks to see the audience reactions. Think of it as A/B testing your talks.
The best example is to check out the NomadPHP Youtube Channel and see for yourself!
// Mixins | |
.has(@element; @content) { | |
&__@{element} { | |
@content(); | |
} | |
} | |
.variant(@modifier; @content) { | |
&--@{modifier} { | |
@content(); |
ResponseMessage | Reason | |
---|---|---|
A2000 | Transaction Approved | |
A2008 | Honour With Identification | |
A2010 | Approved For Partial Amount | |
A2011 | Approved, VIP | |
A2016 | Approved, Update Track 3 | |
D4401 | Refer to Issuer | |
D4402 | Refer to Issuer, special | |
D4403 | No Merchant | |
D4404 | Pick Up Card |
<?php | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
class ExamplePassportTest extends \PassportTestCase | |
{ | |
use DatabaseTransactions; |