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
| ### Use input as formula and create an output of listed table. | |
| ### Ex: Input: 5*x ---> Output: 0 5 10 15 20 25 | |
| import math | |
| #from sympy import * | |
| from colorama import Fore, Back | |
| def table(): | |
| x_min, x_max, formula = raw_input("\n[x_min] [x_max] [formula] = ").split(' ', 2) | |
| print("\n") |
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 python | |
| # -*- encoding: utf-8 -*- | |
| # The PerpeTask Evernote experiment | |
| # Copyright © 2014, Chris “Kwpolska” Warrick. | |
| # All rights reserved. | |
| # Licensed under the BSD license. | |
| """The PerpeTask Evernote experiment.""" | |
| from evernote.api.client import EvernoteClient |
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
| Archive: /media/windows/Android/gapps-kk-20140606-signed.zip | |
| signed by SignApk | |
| Length Date Time Name | |
| --------- ---------- ----- ---- | |
| 283576 2008-02-28 18:33 META-INF/com/google/android/update-binary | |
| 2538 2008-02-28 18:33 META-INF/com/google/android/updater-script | |
| 733 2008-02-28 18:33 install-optional.sh | |
| 1293 2008-02-28 18:33 optional/face/addon.d/71-gapps-faceunlock.sh | |
| 1509607 2008-02-28 18:33 optional/face/app/FaceLock.apk | |
| 1267168 2008-02-28 18:33 optional/face/lib/libfacelock_jni.so |
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
| diff --git a/res/layout/main_clock_frame.xml b/res/layout/main_clock_frame.xml | |
| index ba51c2d..fdc9f05 100644 | |
| --- a/res/layout/main_clock_frame.xml | |
| +++ b/res/layout/main_clock_frame.xml | |
| @@ -41,7 +41,7 @@ | |
| <TextClock | |
| android:id="@+id/digital_clock" | |
| android:format12Hour="@string/main_clock_12_hours_format" | |
| - android:format24Hour="@string/clock_24_hours_format" | |
| + android:format24Hour="@string/clock_24_hours_format_sec" |
This plugin was produced on request by Anton Akhmerov on the nikola-discuss mailing list. It uses the SignalHandler architecture to facilitate creation of posts/pages that are automatically generated by a task.
There is a specific execution order that, if broken, results in the plugin not functioning. The order is:
AutopostSignalis loadedsignalhandlers_loadedis fired,AutogenSignal.gen_filesis calledAutopostSignal.gen_filescreatescache/autopost.rstandcache/autopost.meta- Posts are scanned,
cache/autopost.rstis one of them (seePOSTS/PAGESin config)
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
| <!DOCTYPE html> | |
| <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="description" content="Tags and Categories"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Tags and Categories | My Nikola Site</title> | |
| <link href="../assets/css/all-nocdn.css" rel="stylesheet" type="text/css"> |
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
| import io | |
| files = ['foo', 'bar', 'baz'] | |
| for fn in files: | |
| with io.open(fn, 'r', encoding='utf-8') as fh: | |
| print('file {0}:'.format(fn)) | |
| print(fh.read()) |
This is some code that I intended to use to manage my Evernote workflow, but then decided a saved search (reminderDoneTime:*) is easier.
Fill in auth_token (that is, implement OAuth), APGuid (source notebook) and CTGuid (destination notebook). Figure out GUIDs using the two _nl lines.
All notes with a Done reminder in the APGuid notebook are moved to the CTGuid notebook.
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
| mkaur() { | |
| pkg=$1 | |
| ssh aur-dev.archlinux.org setup-repo $1 | |
| git clone ssh+git://aur-dev.archlinux.org/$1.git/ | |
| cd $1 | |
| cp ~/git/aur-pkgbuilds/$1/* . | |
| } | |
| cpaur() { | |
| pkg=$1 |