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 | |
/* | |
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
--------- | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> |
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/python | |
import requests | |
import re | |
def start(): | |
chapter_links=[] | |
course="http://try.jquery.com/" | |
response=requests.get(course) | |
chapter_pattern=re.compile(r'(http[s]?://try.jquery.com/levels/\d)"') |
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 | |
/** | |
* Exite翻訳(英語→日本語)の野良API サンプル | |
*/ | |
$text = 'This is a pen.'; | |
$to = 'ENJA'; // ENJA or JAEN | |
$q = http_build_query(array( | |
'_id' => '6855579bdcb52e1a0a3822af4b5a9c88', |
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/bin/env bash | |
# Simple script to generate static API for IndiaPost Pincodes | |
# This script requires csvkit, jq | |
# Make sure you did 'pip install csvkit' before running this script. | |
# Installation of jq is fairly simple, 'brew install jq' will do in Mac | |
# Get CSV dataset from | |
# https://data.gov.in/catalog/all-india-pincode-directory |
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 | |
# Install csvkit with csvpys | |
# (csvpys hasn't been pulled back into the main csvkit repo that you can pip install) | |
git clone https://github.com/cypreess/csvkit.git | |
cd csvkit | |
python setup.py build | |
sudo python setup.py install | |
cd ~ |
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 | |
#Pages have these fields, the can have comma separated values for group, category and option | |
# Title: Event1 | |
# ---- | |
# Group: Group1 | |
# ---- | |
# Category: Cat2 | |
# ---- |
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 | |
#Pages have these fields, they can have comma separated values for group, category and option | |
# Title: Event1 | |
# ---- | |
# Group: Group1 | |
# ---- | |
# Category: Cat2 | |
# ---- | |
# Option: Option1 |
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
<div class="col33"> | |
<div class="column-margin"> | |
<h3>One Third</h3> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus | |
porttitor nibh eu est pretium sagittis. Vestibulum sapien nunc, | |
consequat in pulvinar ac, volutpat sed mauris. Nam nec eros mi. Nullam | |
euismod felis fermentum massa vehicula eu volutpat nisi egestas. Mauris | |
purus massa, tempor vitae egestas vel, mattis sit amet nisi. Curabitur | |
risus est, cursus vitae porta vitae, elementum scelerisque velit. Nunc |
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
<div class="col50"> | |
<div class="column-margin"> | |
<h3>One half</h3> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus | |
porttitor nibh eu est pretium sagittis. Vestibulum sapien nunc, | |
consequat in pulvinar ac, volutpat sed mauris. Nam nec eros mi. Nullam | |
euismod felis fermentum massa vehicula eu volutpat nisi egestas. Mauris | |
purus massa, tempor vitae egestas vel, mattis sit amet nisi. Curabitur | |
risus est, cursus vitae porta vitae, elementum scelerisque velit. Nunc |
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
// Send Email | |
require_once 'Mandrill.php'; | |
$mandrill = new Mandrill($apikey); | |
$message = new stdClass(); | |
$message->html = "html message"; | |
$message->text = "text body"; | |
$message->subject = "email subject"; | |
$message->from_email = "[email protected]"; |