A Pen by Wael Yasmina on CodePen.
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
<IfModule mod_deflate.c> | |
# Compress HTML, CSS, JavaScript, Text, XML and fonts | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-opentype | |
AddOutputFilterByType DEFLATE application/x-font-otf | |
AddOutputFilterByType DEFLATE application/x-font-truetype | |
AddOutputFilterByType DEFLATE application/x-font-ttf |
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
//JS: create variable | |
var someVar = "Bazinga!"; | |
writeGlobalVariable("melVar", someVar); | |
//MEL: read js variable | |
<moveletStartAssignment> | |
// Read var from JS | |
readGlobalVariable($local:melVar) | |
</moveletStartAssignment> |
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
<?php | |
function fetchManufacturersList(){ | |
$service_url = 'https://some-url.com/m2m?dataformat=JSON'; | |
$data = json_decode($_POST['data']); | |
$curl = curl_init($service_url); | |
$curl_post_data = ' { | |
"KEY": "GET_USERS", |
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
<?php | |
$json = json_decode(' | |
{"entries":[ | |
{"id": "1","name":"Jeremy", "age":"29"}, | |
{"id": "2","name":"Jenna", "age":"27"} | |
]} | |
'); | |
foreach($json->entries as $row){ | |
foreach($row as $key => $val){ | |
echo $key . ': ' . $val; |
A Pen by Ludvig Lindblom on CodePen.
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
responseTxt.replace(/(?:\r\n|\r|\n)/g, '<br />'); |
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
//save gulp-debug package to json file | |
npm install --save-dev gulp-debug |