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
using System.ServiceModel.Syndication; | |
using System.Xml; | |
using System.Xml.Linq; | |
string url = "https://shaolinarts.com/feed/rss/"; | |
XmlReader reader = XmlReader.Create(url); | |
SyndicationFeed feed = SyndicationFeed.Load(reader); | |
reader.Close(); | |
foreach (SyndicationItem item in feed.Items) |
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
private static IList<T> GetAllControlsOfType<T>(Element view) where T : View | |
{ | |
var rtn = new List<T>(); | |
foreach (View item in view.Descendants()) | |
{ | |
var ctr = item as T; | |
if (ctr != null) | |
{ | |
rtn.Add(ctr); | |
} |
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
private static T GetParentControl<T>(View control) where T : SfTextInputLayout | |
{ | |
if (control == null) return null; | |
var parent = control.Parent; | |
while (parent != null) | |
{ | |
if (parent is T) return parent as T; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
using System.Threading.Tasks; | |
using MvvmCross.Plugins.Sqlite; | |
namespace ****.Repositories | |
{ | |
public interface IRepository<T> | |
{ |
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
tell application "PDFpenPro" | |
tell document of front window | |
set totalPages to count of pages | |
set pageNo to totalPages - 1 | |
repeat while pageNo ≥ 1 | |
move page pageNo to page (totalPages + 1) | |
set pageNo to pageNo - 1 | |
end repeat | |
end tell | |
end tell |
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
tell application "Finder" | |
set AppleScript's text item delimiters to " | |
" | |
set myProjects to get name of folders of folder "Macintosh HD:Users:judis:Google Drive:Matters:" as text | |
set thePath to (path to documents folder as text) & "projects.csv" | |
set NewFile to open for access file thePath with write permission | |
write myProjects to NewFile as «class utf8» | |
close access NewFile | |
set AppleScript's text item delimiters to " " | |
myProjects |
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
tell application "Finder" | |
-- set theFile to "Macintosh HD:Users:[username]:Google Drive:Matters:Test Folder:" -- For testing | |
set myFile to do shell script "basename " & (the quoted form of (the POSIX path of theFile)) | |
-- check to see if it is worth starting OF | |
if myFile does not start with "_" and (theFile as string) ends with ":" then | |
set theDueDate to (current date) + 7 * days | |
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
tell application "Finder" | |
set thePath to (path to desktop folder as text) | |
set clientFolders to get name of folders of folder thePath | |
repeat with theFolder in clientFolders | |
if the theFolder starts with "_" then exit repeat | |
set matterFolders to get folders of folder (thePath & theFolder as text) | |
repeat with aFolder in matterFolders | |
set clientName to theFolder as text | |
set the name of aFolder to theFolder & " - " & the name of aFolder | |
end repeat |
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
tell application "Finder" | |
set folderList to "" | |
set mattersFolder to (((path to home folder as text) & "Google Drive:Matters:")) | |
set clientFolders to get name of folders of folder mattersFolder | |
repeat with theFolder in clientFolders | |
set folderList to folderList & theFolder & return | |
set thePath to mattersFolder & theFolder | |
set subFolders to get the name of folders of folder thePath | |
if (count of subFolders) is greater than 0 then | |
repeat with aFolder in subFolders |
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
tell application "Evernote" | |
if (not (tag named "exported" exists)) then | |
make tag with properties {name:"exported"} | |
end if | |
set matches to find notes "tag:etf" | |
repeat with theNote in matches | |
set myTitle to title of theNote | |
set myTags to tags of theNote | |
set tagList to "" | |
repeat with theTag in myTags |
NewerOlder