This hacky plugin adds a post list to a file in post-processing, useful when you want post text out of a post list.
Use with care.
Usage:
Here is my hacky post list:
.. listofpostsgoeshere
This hacky plugin adds a post list to a file in post-processing, useful when you want post text out of a post list.
Use with care.
Usage:
Here is my hacky post list:
.. listofpostsgoeshere
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 |
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.
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()) |
<!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 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:
AutopostSignal
is loadedsignalhandlers_loaded
is fired, AutogenSignal.gen_files
is calledAutopostSignal.gen_files
creates cache/autopost.rst
and cache/autopost.meta
cache/autopost.rst
is one of them (see POSTS
/PAGES
in config)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" |
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 |
#!/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 |