Skip to content

Instantly share code, notes, and snippets.

[
{
"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"
},
{
#!/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"
<?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',
@riterrani
riterrani / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?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