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 re | |
from calibre.web.feeds.recipes import BasicNewsRecipe | |
from calibre.web.feeds import Feed | |
from calibre.constants import config_dir, CONFIG_DIR_MODE | |
import os, os.path, urllib | |
from hashlib import md5 | |
class PactRecipe(BasicNewsRecipe): |
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
package ch.isageek.tyderion.habittracker.settings; | |
import android.content.Context; | |
import android.preference.TwoStatePreference; | |
import android.util.AttributeSet; | |
import ch.isageek.tyderion.habittracker.R; | |
/** | |
* Created by tzhnaga1 on 24/04/14. |
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
asdf |
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
Sub CreateAppointmentFromMail() | |
Const mailItem_c As String = "MailItem" | |
Dim OE As Outlook.Explorer | |
Dim MI As Outlook.MailItem | |
Dim AI As Outlook.AppointmentItem | |
Dim TI As Outlook.TaskItem | |
Set OE = Application.ActiveExplorer | |
'Abort sub if no item selected: |
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
except IOError: | |
## Probably a broken symlink | |
f = None # Instead of pass | |
finally: | |
self.file_counter.increment() | |
if f is not None: | |
f.close() |
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
tell application "Xcode" | |
activate | |
--display dialog "window1: " & (get name of window 0) | |
set CurrentActiveDocument to document 1 whose name ends with (word -1 of (get name of window 1)) | |
set WhatYouWant to path of CurrentActiveDocument | |
end tell | |
tell application "Sublime Text 3" | |
activate (open WhatYouWant) | |
end tell |
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
Show hidden characters
{ | |
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", | |
"detect_indentation": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Inconsolata", | |
"font_size": 16, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
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
map(array, function, otherparams*) | |
{ | |
if (function.name == "") | |
function := Func(function) | |
returnarray := [] | |
For index, value in array | |
returnarray[index] := function.(value, otherparams*) | |
return returnarray | |
} |
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
case $yno in | |
[yY] | [yY][Ee][Ss] ) | |
echo "Agreed" | |
;; | |
[nN] | [n|N][O|o] ) | |
echo "Not agreed, you can't proceed the installation"; | |
exit 1 | |
;; |
OlderNewer