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 "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
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
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
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
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) |
OlderNewer