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
#!/usr/bin/python | |
# renameFiles.py | |
""" | |
This script will append 1_, 2_, 3_ ... to the name of files with extension .ext in a given directory | |
$ python renameFiles.py /path/to/dir/with/pdf "*.pdf" | |
""" | |
import sys, glob, os | |
def rename(dir, pattern, titlePattern): | |
i = 0 |
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 | |
echo "Testing gist from Sbulime"; | |
?> |
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
reuf@reuf-VirtualBox:~/Downloads/tc-api-master$ ls | |
config.js controllers db_conf.json doc package.json Procfile README.md services.js static thirdparty utils views | |
reuf@reuf-VirtualBox:~/Downloads/tc-api-master$ npm install | |
npm http GET https://registry.npmjs.org/express | |
npm http GET https://registry.npmjs.org/nodejs-db-informix | |
npm http GET https://registry.npmjs.org/winston | |
npm http GET https://registry.npmjs.org/passport-topcoder | |
npm http GET https://registry. |
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
reuf@reuf-VirtualBox:~/Downloads/tc-api-master$ npm install | |
npm WARN package.json tc-api@1.0.0 No repository field. | |
npm http GET https://registry.npmjs.org/express | |
npm http GET https://registry.npmjs.org/nodejs-db-informix | |
npm http GET https://registry.npmjs.org/winston | |
npm http GET https://registry.npmjs.org/passport-topcoder | |
npm http GET https://registry.npmjs.org/passport | |
npm http GET https://registry.npmjs.org/jade | |
npm http GET https://registry.npmjs.org/xml2js | |
npm http 304 https://registry.npmjs.org/nodejs-db-informix |
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
reuf@reuf-VirtualBox:~/Downloads/tc-api-master$ npm install | |
npm http GET https://registry.npmjs.org/express | |
npm http GET https://registry.npmjs.org/nodejs-db-informix | |
npm http GET https://registry.npmjs.org/passport-topcoder | |
npm http GET https://registry.npmjs.org/winston | |
npm http GET https://registry.npmjs.org/passport | |
npm http GET https://registry.npmjs.org/jade | |
npm http GET https://registry.npmjs.org/xml2js | |
npm http 304 https://registry.npmjs.org/nodejs-db-informix | |
npm http 304 https://registry.npmjs.org/passport-topcoder |
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
# setup vagrant | |
gem install vagrant | |
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box | |
mkdir my_vagrant_test | |
cd my_vagrant_test | |
vagrant init lucid32 | |
vim Vagrantfile | |
vagrant up | |
vagrant ssh |
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 | |
/** | |
* Interface form for placing/modifying/viewing a reservation | |
* This file will present a form for a user to | |
* make a new reservation or modify/delete an old one. | |
* It will also allow other users to view this reservation. | |
* @author Nick Korbel <lqqkout13@users.sourceforge.net> | |
* @author David Poole <David.Poole@fccc.edu> | |
* @version 02-07-09 | |
* @package phpScheduleIt |
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
insta |
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 | |
class BlogController extends Controller | |
{ | |
/** | |
* Posts | |
* | |
* @return void | |
*/ | |
public function showPosts() |
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
# Loading the pyPdf Library | |
from pyPdf import PdfFileWriter, PdfFileReader | |
import os | |
# Creating a routine that appends files to the output file | |
def append_pdf(input,output): | |
[output.addPage(input.getPage(page_num)) for page_num in range(input.numPages)] | |
# Creating an object where pdf pages are appended to | |
output = PdfFileWriter() |
OlderNewer