This file contains 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
$.ajax({ | |
type : "GET", | |
url : "http://blachblahblah.com/abc.html", | |
dataType : "text/xml", | |
data : { xml : escape("<xml version='1.0'><MyTasks><Search></Search></MyTasks>") }, | |
success : function(msg){ alert('Success'); } , | |
error : function(msg) { alert('Failed'); } | |
}); |
This file contains 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
data: escape('<xml version='1.0'><ns2:CalculateRoute xmlns:ns2="http://www.navteq.com/lbsp/Routing-CalculateRoute/4"><Request><CalculateRouteRequestMetaInfo><RequestID>0000003973</RequestID><VerboseMode>1</VerboseMode></CalculateRouteRequestMetaInfo><RepresentationOptions><Language>de-DE</Language><RepresentationMode>overview</RepresentationMode><RouteAttributes>waypoints summary legs</RouteAttributes><LegAttributes>maneuvers waypoint length travelTime</LegAttributes><ManeuverAttributes>position length travelTime</ManeuverAttributes><LinkAttributes>shape speedLimit dynamicSpeedInfo address</LinkAttributes></RepresentationOptions><!-- &waypoint0=geo!53.58888308889949,10.133627234151305 --><Waypoint xsi:type="ns4:GeoWaypointParameterType" xmlns:ns4="http://www.navteq.com/lbsp/Routing-Common/4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Position> <Latitude>53.58888308889949</Latitude> <Longitude>10.133627234151305</Longitude> </Position> <Departure>2012-08-30T12:00:00-05:00</Departure> <Mode> <Type> |
This file contains 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
Boa tarde a todos! Para quem não me conhece, sou Fábio Vedovelli, um dos palestrantes da LaraconfBrasil. | |
Lancei hoje um curso básico de Laravel. Será online (ao vivo) nos dias 30/07 e 06/08 (sábados) das 8h as 13h. | |
O curso é voltado aqueles que possuem interesse no Laravel porém ainda não conseguiram parar para estuda-lo! | |
A grade é bastante enxuta para que todos os pontos básicos possam ser bem estudados. | |
Se este for o seu caso, agradeço sua visita (e posterior matrícula, é claro!). |
This file contains 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
getChartsContents () { | |
const domEls = jQuery('.oct-chart svg') // acesso todos os SVG da pagina | |
const quantity = domEls.length | |
let i = 0 | |
let contents = [] | |
for (i; i < quantity; i++) { // neste loop pegarei o conteudo dos SVG e transformarei para Base64 | |
/** | |
* Serialize SVG to String |
This file contains 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
l5dbeka-mongo | 2016-09-21T16:50:45.046+0000 I - [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. | |
l5dbeka-mongo | 2016-09-21T16:50:45.046+0000 W - [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty. | |
l5dbeka-mongo | 2016-09-21T16:50:45.047+0000 W STORAGE [initandlisten] Recovering data from the last clean checkpoint. | |
l5dbeka-mongo | 2016-09-21T16:50:45.047+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), | |
l5dbeka-mongo | 2016-09-21T16:50:50.673+0000 W STORAGE [initandlisten] Detected configuration for non-active storage engine mmapv1 when current storage engine is wiredTiger | |
l5dbeka-mongo | 2016-09-21T16:50:50.6 |
This file contains 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
$hosts = ['http://octimine:ntQYnuLgeNBt24MMWryxRVdenupfUK44@188.40.136.133:9200']; | |
$client = \Elasticsearch\ClientBuilder::create()->setHosts($hosts)->build(); | |
$parameters = [ | |
'index' => 'startup', | |
'type' => 'profile', | |
'size' => 32, | |
'body' => [ | |
'query' => [ | |
'bool' => [ | |
'must' => [ |
This file contains 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
array:4 [ | |
"index" => "startup" | |
"type" => "profile" | |
"size" => 32 | |
"body" => array:1 [ | |
"query" => array:1 [ | |
"bool" => array:3 [ | |
"must" => array:1 [ | |
"match" => array:1 [ | |
"full_description.english" => array:1 [ |
This file contains 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
\DB::listen(function ($query) { | |
$fullQuery = vsprintf(str_replace(array('%', '?'), array('%%', '%s'), $query->sql), $query->bindings); | |
$logString = "Connection: {$query->connectionName} | |
Execution time: {$query->time}ms | |
Query: ${fullQuery} | |
---------------------" . PHP_EOL; | |
\Storage::append('logs/queries.log', $logString); | |
}); |
This file contains 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
@servers(['staging' => 'root@192.168.0.99', 'production' => 'root@192.168.0.100']) | |
<?php | |
$app_name = 'l5eka'; | |
$app_path = '/var/www/vhosts/'.$app_name; | |
$repo = 'https://github.com/vedovelli/l5eka'; | |
$branch = 'aula4'; | |
$keep = 6; | |
$timezone = 'America/Sao_Paulo'; |
This file contains 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
$svg = "<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg version="1.1" style="font-family:"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif;font-size:12px;" xmlns="http://www.w3.org/2000/svg" width="600" height="400"><desc>Created with Highcharts 4.2.5</desc><defs><clipPath id="highcharts-1"><rect x="0" y="0" width="600" height="400"/></clipPath></defs><rect x="0" y="0" width="600" height="400" fill="#FFFFFF" class=" highcharts-background"/><g class="highcharts-series-group"><g class="highcharts-series highcharts-series-0 highcharts-tracker" transform="translate(10,10) scale(1 1)" style="cursor:pointer;"><path fill="rgb(218,40,28)" d="M 386.42117941589436 89.15410763569923 L 386.42117941589436 102.27910763569923 L 273 200.625 L 273 187.5 Z" transform="translate(0,0)" visibility="visible"/><path fill="rgb(7,124,217)" d="M 374.5187008326802 295.1598928846466 L 374.5187008326802 308.2848928846466 L 273 200.625 L 273 187.5 Z" transform="translate(0,0)" visibility=" |