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
<head>((?!</head>).|\n)+</head> |
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 | |
/** | |
* Tests if a Picture entity has already been voted by a specific User. | |
* | |
* @param Innteger $userId The User ID. | |
* @return boolean TRUE if the predicate is TRUE for at least one element, FALSE otherwise. | |
*/ | |
public function hasBeenVotedBy($userId) | |
{ |
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
{% extends '::base.html.twig' %} | |
{% block content_back %} | |
{{' participated'}} | |
{% endblock content_back %} | |
{% block content %} | |
{% for key, flash in app.session.getFlashes() %} | |
<div class="center red {{ key }}"><p>{{ flash }}</p></div> |
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
--- | |
ip: "192.168.10.10" | |
memory: 2048 | |
cpus: 1 | |
authorize: ~/.ssh/id_rsa.pub | |
keys: | |
- ~/.ssh/id_rsa |
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
<snippet> | |
<content><![CDATA[ | |
{{ trans('${1:langfilename}.${2:identifier}'${3:, array('${4:variable}' => '${5:replacement}')}) }} | |
]]></content> | |
<tabTrigger>ltrans</tabTrigger> | |
<scope>text.html.laravel-blade</scope> | |
<description>Laravel localization of a string using Blade templating.</description> | |
</snippet> |
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
# /usr/share/nano/php.nanorc | |
syntax "php" "\.php[2345s~]?$" | |
color brightblue start="<\?(php)?" end="\?>" | |
color blue start="<[^\?]" end="[^\?]>" | |
color magenta "\$[a-zA-Z_0-9]*" | |
color cyan "(\[)|(\])" | |
color cyan "(function|extends|use|namespace|var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s" | |
color cyan "parent\:\:" | |
color cyan "function\s[a-zA-Z_0-9]*" |
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
```javascript | |
"#button": { | |
// ... | |
backgroundColor: Alloy.CFG.design.mainColor, | |
// ... | |
} | |
``` |
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 | |
function hex2rgba($hex) { | |
$hex = str_replace("#", "", $hex); | |
switch (strlen($hex)) { | |
case 3 : | |
$r = hexdec(substr($hex, 0, 1).substr($hex, 0, 1)); | |
$g = hexdec(substr($hex, 1, 1).substr($hex, 1, 1)); | |
$b = hexdec(substr($hex, 2, 1).substr($hex, 2, 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
Parse.Cloud.define("retrieveAllObjects", function(request, status) { | |
var result = []; | |
var chunk_size = 1000; | |
var processCallback = function(res) { | |
result = result.concat(res); | |
if (res.length === chunk_size) { | |
process(res[res.length-1].id); | |
} else { | |
status.success(result); | |
} |
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/bash | |
mkdir PDFNetPHPSetup | |
cd PDFNetPHPSetup && wget https://github.com/PDFTron/PDFNetWrappers/archive/d5a24e199524b9c61b3d10ff880a76f816e3f480.tar.gz | |
tar xzvf d5a24e199524b9c61b3d10ff880a76f816e3f480.tar.gz | |
cd PDFNetWrappers-d5a24e199524b9c61b3d10ff880a76f816e3f480/PDFNetC | |
wget http://www.pdftron.com/downloads/PDFNetC64.tar.gz && tar xzvf PDFNetC64.tar.gz | |
mv PDFNetC64/Headers/ . && mv PDFNetC64/Lib/ . | |
cd .. && mkdir Build && cd Build | |
cmake -D BUILD_PDFNetPHP=ON .. && make && make install |
OlderNewer