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
<!-- In this example site.data.items points to a file named items.json in the _data folder --> | |
<!-- Replace "date" with the name of the field you want to sort by --> | |
{% assign sortedItems = site.data.items | sort: "date" | reverse %} | |
<ul> | |
{% for item in sortedItems %} | |
<li>{{ item.title }} {{ item.date }}</li> | |
{% endfor %} | |
</ul> |
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 | |
return PhpCsFixer\Config::create() | |
->setRules(array( | |
'@PSR2' => true, | |
'array_indentation' => true, | |
'array_syntax' => array('syntax' => 'short'), | |
'combine_consecutive_unsets' => true, | |
'method_separation' => true, | |
'no_multiline_whitespace_before_semicolons' => true, | |
'single_quote' => true, |
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
$('#modal').on('hide.bs.modal', function (e) { | |
$("#videoID").get(0).pause(); | |
}) |
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
INSERT INTO states(state_code,state_name,country_code) VALUES ('AL','Alabama','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('AK','Alaska','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('AZ','Arizona','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('AR','Arkansas','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('CA','California','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('CO','Colorado','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('CT','Connecticut','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('DE','Delaware','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('DC','District of Columbia','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('FL','Florida','US'); |
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
pre { | |
position: relative; | |
background-color: #232323; | |
margin-bottom: 40px; | |
overflow-x: scroll; | |
font-size: 13px; | |
color: #E6E1DC; | |
border: none; | |
line-height: 1.9em; | |
} |
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
$temp_files[] = self::saveJsonFile($account_id . '_accounts.json', $data); | |
// Zip it all up! | |
$storage = storage_path() . '/archive/'; | |
$zip_file = $account_id . '_archive_' . time() . '.zip'; | |
$zip = new ZipArchive; | |
$open = $zip->open($storage . $zip_file, ZipArchive::CREATE); | |
if ($open === true) { |