- Digitized (http://www.digitized.gr)
- Up North Conference (http://upnorthconf.gr)
- Devit Conference (https://www.devitconf.org)
- JoomlaDay (http://joomladay.gr) -- ON HOLD --
This file contains hidden or 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
| // Step 1. Create this class in the middleware folder. | |
| <?php namespace App\Http\Middleware; | |
| use Closure; | |
| class BeforeAutoTrimmer { | |
| /** | |
| * Handle an incoming request. |
This file contains hidden or 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
| <?php | |
| /** | |
| * See In nth Email | |
| * |
This file contains hidden or 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
| > Removed | |
| -Dawt.useSystemAAFontSettings=lcd | |
| > Added | |
| -Dswing.aatext=true | |
| -Dawt.useSystemAAFontSettings=gasp | |
| -Dsun.java2d.xrender=true |
This file contains hidden or 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
| public function fire() | |
| { | |
| //// Preventing Cron Job Collision | |
| $file = "/var/www/tick/cronlock"; | |
| $fp = fopen($file, 'r+'); | |
| if(!flock($fp, LOCK_EX | LOCK_NB)) { | |
| $this->error('Cron is already running another task...'); | |
| exit(-1); | |
| } | |
This file contains hidden or 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
| 1. Get the file cacert.pem from http://curl.haxx.se/docs/caextract.html | |
| 2. store it somewhere like /etc/php5/apache2 | |
| 3. Put this line in your php.ini (/etc/php5/apache/php.ini) | |
| curl.cainfo=/etc/php5/apache2/cacert.pem | |
| 4. All set! |
This file contains hidden or 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
| Taken from = https://coderwall.com/p/rs63ea | |
| For 32-bit system use phantomjs-1.9.0-linux-i686.tar.bz2 | |
| For 64-bit system use phantomjs-1.9.0-linux-x86_64.tar.bz2 | |
| Go to the SHARE directory cd /usr/local/share |
This file contains hidden or 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
| // Validate End | |
| Validator::extend('Validend', function($attribute, $value, $parameters) | |
| { | |
| $start_date = Input::get($parameters[0]); | |
| return (strtotime($value) > strtotime($start_date)); | |
| }); |
This file contains hidden or 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
| #### Instructions ####################### | |
| # | |
| # Install Node, grunt-aglio and grunt-contrib-watch on your localhost | |
| # Create this .js file in the folder that you want Grunt to watch for changes | |
| # Replace "my_app" with your app name | |
| # Intro.md, first.md and any .md files will be watched. The order that those will be concatenated is in the array => ["intro.md","first.md",'second.md'] | |
| # | |
| ########################################## | |
This file contains hidden or 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
| // Info: Attach event to all elements with this data attribute | |
| // works even for elements that will be created afterwards by Ajax or Jquery | |
| // Only thing you do is to put a data-popmsg attribute in the element you want to click and the value of this attribute | |
| // will be the body of the popup. | |
| $(document).on("click","*[data-popmsg]",function(e){ | |
| var msg = $(this).attr("data-popmsg"); | |
| if(!confirm(msg)) | |
| { | |
| e.preventDefault(); |