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
{ | |
"name": "a" | |
} |
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
user root; | |
worker_processes auto; | |
worker_rlimit_nofile 1048576; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 1048576; | |
use epoll; | |
multi_accept on; | |
} |
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 | |
declare(strict_types = 1); | |
class SampleController | |
{ | |
public function sampleAction() | |
{ | |
$payload = $request->getAttribute('dataObject'); |
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 | |
use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor; | |
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer; | |
use Symfony\Component\Serializer\Serializer; | |
$payload = json_decode('{"name":"sample"}', true); | |
class SampleDto { | |
/** |
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
@-moz-document domain("facebook.com") { | |
#u_0_a, #leftCol { | |
display: none; | |
} | |
#leftCol div, #rightCol div { | |
display: none; | |
} | |
#pagelet_composer { |
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
create table tree ( | |
id INT, | |
path VARCHAR(255), | |
name VARCHAR(100) | |
); | |
insert into tree VALUES (1, '/', 'Prédio Orozimbo'); | |
insert into tree VALUES (2, '/1', 'Ala a'); | |
insert into tree VALUES (3, '/1', 'Ala b'); | |
insert into tree VALUES (4, '/1/2', 'RH'); |
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
drop table tree; | |
create table tree ( | |
id INT, | |
path VARCHAR(255), | |
name VARCHAR(100) | |
); | |
insert into tree VALUES (1, '/', 'Prédio Orozimbo'); | |
insert into tree VALUES (2, '/1', 'Ala a'); |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
fakeArg := "fake" |
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
// Example: | |
JavaScript.load("/javascripts/something.js"); | |
// With callback (that’s the good thing): | |
JavaScript.load("http://www.someawesomedomain.com/api.js", function() { | |
API.use(); // or whatever api.js provides ... | |
}); |