ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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 | |
// bootstrap/react.php | |
// Remember, we need to do first: composer require react/react! | |
$app = include('app.php'); | |
$host = 'localhost'; | |
$port = 9000; | |
$reactApp = function (\React\Http\Request $request, \React\Http\Response $response) use ($app, $host, $port) { |
- Enable the tracer on your xdebug.ini file (see the
xdebug.ini
file). - If you are gonna trace an http request, make sure your
xdebug.trace_output_dir
is writable by the webserver user (www-data). - Execute your script or your request. You can use
produce_segmentation.php
to test. - See the trace file(s) on your
xdebug.trace_output_dir
.
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 | |
include 'vendor/autoload.php'; | |
//This hash must be a constant (user defined) | |
$tiny = new \ZackKitzmiller\Tiny('abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ5SX0TEjkR1mLOw8Gvq2VyJxIFhgCAYidrclDWaM3so9bfzZpuUenKtP74QNH6B'); | |
$firstletterSeparator = 'h'; | |
$lastletterSeparator = 'h'; |
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
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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 | |
/* | |
GlobalMercator - part of Aggregate Map Tools | |
Version 1.0 | |
Copyright (c) 2009 The Bivings Group | |
All rights reserved. | |
Author: John Bafford | |
http://www.bivings.com/ | |
http://bafford.com/softare/aggregate-map-tools/ |
Reposted from Qiita
For almost a year now, I've been using this "flux" architecture to organize my React applications and to work on other people's projects, and its popularity has grown quite a lot, to the point where it shows up on job listings for React and a lot of people get confused about what it is.
There are a billion explainations on the internet, so I'll skip explaining the parts. Instead, let's cut to the chase -- the main parts I hate about flux are the Dispatcher and the Store's own updating mechanism.
If you use a setup similar to the examples in facebook/flux, and you use flux.Dispatcher, you probably have this kind of flow:
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
cd /tmp | |
# Install depot_tools first (needed for source checkout) | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
export PATH=`pwd`/depot_tools:"$PATH" | |
# Download v8 | |
fetch v8 | |
cd v8 |
The aim of this talk would be API Formats and Standards:
- List of current API standards
- GraphQL,Raw JSON, JSONAPI, HAL+JSON, HAL+XML, JSend and JSend-like.
- Benefits and drawbacks
- Standard Adoptions
- Personal experience
- PHP, Java and Android development.
I don't mind doing it in english or spanish.
OlderNewer