duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "github.com/gorilla/websocket" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os/exec" |
| <?php | |
| /* This gist is offered as is, make sure to test in your environment | |
| * | |
| * This class can be used to iterate over a large Eloquent query. It uses a combination of the PDO Fetch and | |
| * the chunk methods to collect a series of items in memory. The chunk part was necessary in order to implement | |
| * eager loading options. You can set the CHUNK_SIZE in the code to set how many rows to load in memory at a time | |
| * again for the eager loading purposes. | |
| * | |
| * I am sure there are other ways to implement this technique more effectively |
| # supervisor | |
| # | |
| # Author: Günter Grodotzki <[email protected]> | |
| # Version: 2015-04-25 | |
| # | |
| # - set param "SUPERVISE=enable" to activate | |
| # - chmod +x supervise.sh | |
| # | |
| packages: | |
| yum: |
| <?php namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| /** | |
| * If the incoming request is an OPTIONS request | |
| * we will register a handler for the requested route | |
| */ | |
| class CatchAllOptionsRequestsProvider extends ServiceProvider { |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\DomCrawler\Crawler; | |
| class PjaxMiddleware |
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| apt-get install pkg-config libmagickwand-dev -y | |
| cd /tmp | |
| wget https://pecl.php.net/get/imagick-3.4.0.tgz | |
| tar xvzf imagick-3.4.0.tgz |
| <html> | |
| <head> | |
| <title>Step progress bar</title> | |
| <style type="text/css"> | |
| .container { | |
| width: 100%; | |
| } | |
| .progressbar { | |
| counter-reset: step; | |
| } |
Picking the right architecture = Picking the right battles + Managing trade-offs