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 reminders | |
with open('BackedupReminder.txt', 'w', encoding='utf-8') as fo: | |
all_calendars = reminders.get_all_calendars() | |
fo.write('Reminder Backup\n\n') | |
fo.write('There are ' + str(len(reminders.get_reminders())) + ' reminders to back up.\n\n') | |
counter = 0 | |
for calendar in all_calendars: | |
fo.write('Calendar title: ' + calendar.title + '\n') | |
fo.write('Calendar identifier: ' + calendar.identifier + '\n\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
import editor | |
import markdown2 | |
from bs4 import BeautifulSoup | |
import tempfile | |
import webbrowser | |
import os | |
# filename = editor.get_path() | |
filename = os.path.join(tempfile.gettempdir(),'fi.md') |
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
// From Resources > Advanced Google Services, enable Calendar API, | |
// and follow the link "Google Developers Console" and enable Calendar API there, too. | |
// | |
// Original: https://github.com/kdotsaito/GAS/blob/master/calender_merge.gs | |
// Calendar ID to concatenate to. | |
var outCal_id = "@group.calendar.google.com"; | |
// Calendar IDs to concatenate. | |
var inCal_ids = [ | |
"@group.calendar.google.com", | |
"@group.calendar.google.com", |
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
/* | |
* Inspired by: http://stackoverflow.com/a/27215474 | |
* | |
* After copying the code to your own script, open Resources -> Advanced Google Services, | |
* 1. enable Gmail API (switch to "on"), | |
* 2. open the link for the Google Developers Console, and enable the Gmail API for your project. | |
*/ | |
function sendMorningDrafts() { | |
sendLabeledDrafts("schedule/send-next-0700-0800"); |
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
from __future__ import absolute_import | |
from __future__ import print_function | |
import os | |
import sys | |
import pickle | |
import console | |
import editor | |
import dropbox | |
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder |
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
# YOU NEED TO INSERT YOUR APP KEY AND SECRET BELOW! | |
# Go to dropbox.com/developers/apps to create an app. | |
from __future__ import absolute_import | |
from __future__ import print_function | |
app_key = 'YOUR_APP_KEY' | |
app_secret = 'YOUR_APP_SECRET' | |
import webbrowser | |
import dropbox |
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
" Create Markdown Hyperlink Automatically | |
" Requires mattn/webapi-vim (or vital.vim), tpope/vim-surround, | |
" kana/vim-textobj-user, mattn/vim-textobj-url | |
command MDURL call CreateMarkdownHyperLink() | |
command MDURLTitle call CreateMarkdownHyperLinkWithTitle() | |
function! GetWebPageTitle(url) | |
let res = webapi#http#get(a:url) | |
let dom = webapi#html#parse(res.content) | |
return dom.childNode('head').childNode('title').value() | |
endfunction |
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 | |
import sys | |
import pickle | |
import console | |
import editor | |
import dropboxlogin # this code can be found here https://gist.github.com/4034526 | |
STATE_FILE = '.dropbox_state' |
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
# coding: utf-8 | |
import ui | |
import time | |
tapped_time = [] | |
def calc_bpm(): | |
# I decided not to use the first and the last time measurement. | |
# So the list must have at least 4 items to calculate BPM. |
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
# coding: utf-8 | |
import ui | |
import clipboard | |
from console import hud_alert | |
aa_list = ["٩( 'ω' )و", | |
'₍₍⁽⁽(ી(◔‿ゝ◔)ʃ)₎₎⁾⁾', | |
'(◔‸◔ )', |
NewerOlder