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
[ | |
{ | |
"title": "Song 1", | |
"url": "https://storage.googleapis.com/leksi-text-to-speech/hello%40leksi.co/mp3/Short_docx_example_antibiotics_not_always_the_answer.docx-3a5edef7-fa50-48b8-a910-8b7c4ab6e676/final.mp3" | |
}, | |
{ | |
"title": "Song 2", | |
"url": "https://storage.googleapis.com/leksi-text-to-speech/hello%40leksi.co/mp3/Does_it_work_for_the.txt-728a596c-38bf-420a-9820-b16c19ff4d64/final.mp3" | |
}, | |
{ |
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
#!/bin/bash | |
# Target directory | |
TARGET=$3 | |
echo "Finding and copying files and folders to $TARGET" | |
for i in $(git diff --name-only $1 $2) | |
do | |
# First create the target directory, if it doesn't exist. | |
mkdir -p "$TARGET/$(dirname $i)" | |
# Then copy over the file. | |
cp "$i" "$TARGET/$i" |
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 | |
$installer = $this; | |
$installer->startSetup(); | |
$entityTypeId = $installer->getEntityTypeId('catalog_category'); | |
$attributeSetId = $installer->getDefaultAttributeSetId($entityTypeId); | |
$attributeGroupId = $installer->getDefaultAttributeGroupId($entityTypeId, $attributeSetId); | |
$installer->addAttribute('catalog_category', 'new_cat_attrb', array( | |
'type' => 'int', |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 endc( $array ) { return end( $array ); } | |
$file = fopen('bitstampUSD.csv', 'r'); | |
$firstTime = 0; | |
$periods = array( | |
// "min5" => 300, // 5 minutes | |
// "min30" => 1800, // 30 minutes | |
// "hour1" => 3600, // 1 hour | |
// "hour6" => 21600, // 6 hour |