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
"""Asks for image URL, downloads it to images folder. | |
Generates bibtex record and appends it to the end of the bib file. | |
Prints the figure LaTeX code.""" | |
import urllib | |
import shutil | |
import os | |
def download_file(url, binary=True): | |
filename = url.split('/')[-1].split("?")[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
""" | |
Parses a given file as a category tree and saves each item as MPTT Objects. | |
Example format of the input file: | |
- Books | |
-- Novel | |
-- Tech | |
--- Science-Fiction | |
--- Documentary | |
-- Fun |
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
public Map<String,Object> run(Map<String,Object> args) throws Exception { | |
String crawlId = (String)args.get(Nutch.ARG_CRAWL); | |
numJobs = 1; | |
currentJobNum = 0; | |
currentJob = new NutchJob(getConf(), "update-table"); | |
if (crawlId != null) { | |
currentJob.getConfiguration().set(Nutch.CRAWL_ID_KEY, crawlId); | |
} | |
//job.setBoolean(ALL, updateAll); | |
ScoringFilters scoringFilters = new ScoringFilters(getConf()); |
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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.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
import os | |
REGION = raw_input("Region? [US/eu] ").strip().lower() != "eu" | |
if REGION: | |
REGION = "us" | |
else: | |
REGION = "eu" | |
PROJECT_NAME = raw_input("Project name: ") | |
APP_NAME = raw_input("Initial app name: ") | |
USE_PGSQL = raw_input("Use PostgreSQL app? [Y/n] ").strip().lower() != "n" |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>reveal.js - The HTML Presentation Framework</title> | |
<meta name="description" content="A framework for easily creating beautiful presentations using HTML"> | |
<meta name="author" content="Hakim El Hattab"> |
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 | |
$_['option_register_payment_address_title'] = 'Ödeme detayları'; | |
$_['option_register_payment_address_description'] = ''; | |
$_['option_register_shipping_address_title'] = 'Teslimat detayları'; | |
$_['option_register_shipping_address_description'] = ''; | |
$_['option_register_shipping_method_title'] = 'Teslimat yöntemi'; | |
$_['option_register_payment_method_title'] = 'Ödeme yöntemi'; | |
$_['option_guest_payment_address_title'] = 'Ödeme detayları'; |
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
import time | |
import datetime | |
period = 1 # secs between each measurement | |
filename = "output.csv" # filename to write data. | |
def get_temperature(): | |
# Open the file that we viewed earlier so that python can see what is in it. Replace the serial number as before. | |
tfile = open("/sys/bus/w1/devices/10-000802824e58/w1_slave") | |
# Read all of the text in the file. |
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
<select name="Sehir"> | |
<option value="0">------</option> | |
<option value="1">Adana</option> | |
<option value="2">Adıyaman</option> | |
<option value="3">Afyonkarahisar</option> | |
<option value="4">Ağrı</option> | |
<option value="5">Amasya</option> | |
<option value="6">Ankara</option> | |
<option value="7">Antalya</option> | |
<option value="8">Artvin</option> |
OlderNewer