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
public class TreeViewDataSource : NSOutlineViewDataSource | |
{ | |
private readonly List<TreeItem> source = new List<TreeItem>(); | |
public TreeViewDataSource() | |
{} | |
public void Add(TreeItem item) | |
{ | |
source.Add(item); |
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
<key>CFBundleDocumentTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleTypeName</key> | |
<string>EXT</string> | |
<key>NSExportableTypes</key> | |
<array> | |
<string>org.temp.ext</string> | |
</array> | |
<key>CFBundleTypeRole</key> |
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
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
#OS junk files | |
[Tt]humbs.db | |
*.DS_Store | |
# User-specific files | |
*.suo | |
*.user |
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
public async Task DoSomethingAsync() | |
{ | |
var tsc = new TaskCompletionSource<object>(); | |
EventHandler<AsyncResult> handler = (o, e) => | |
{ | |
if (e.Error == null) | |
{ | |
tsc.TrySetResult(null); | |
} |
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.Drawing; | |
using System.Threading.Tasks; | |
using MonoTouch.CoreAnimation; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace Animations | |
{ | |
/// <summary> | |
/// Original Objective-C by shu223 |
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.Data; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using System.Text; |
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
t's quite easy, no disassembling required. | |
1. Enable SFTP in the web interface | |
2. Open a SFTP connection to the box using your admin account | |
3. Change directory to the Admin: cd Admin | |
4. Create a link for default.runlevel file: symlink /etc/initng/runlevel/default.runlevel default.runlevel | |
5. Create a link for shadow file: symlink /etc/shadow shadow | |
6. Create a link for unicorn.sharing.ssh.conf file: symlink /etc/unicorn/unicorn_conf/unicorn.sharing.ssh.conf unicorn.sharing.ssh.conf | |
7. You can close SFTP connection now | |
8. Open the web file manager in your browser and navigate to the Admin folder |
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
if (!string.IsNullOrWhiteSpace(webContentViewModel.Url)) | |
{ | |
var safariViewController = new SFSafariViewController(new NSUrl(webContentViewModel.Url)) | |
{ | |
PreferredBarTintColor = Theme.Colors.NavigationBarBackgroundColor, | |
PreferredControlTintColor = Theme.Colors.AccentColor | |
}; | |
return this.viewPresenter.Show(safariViewController); | |
} |
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
http://www.thinkandbuild.it/implementing-the-twitter-ios-app-ui/ | |
var blur = UIBlurEffect.FromStyle(UIBlurEffectStyle.Light); | |
var blurView = new UIVisualEffectView(blur) | |
{ | |
Frame = this.Image.Bounds | |
}; | |
this.bluredImage.Image = this.Image.Image; | |
this.bluredImage.AddSubview(blurView); |
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
UIView.TransitionNotify( | |
this.CollectionView, | |
duration: 0.5, | |
options: UIViewAnimationOptions.TransitionCrossDissolve, | |
animation: delegate { }, | |
completion: delegate { }); | |
var frame = this.CollectionView.Frame; |
OlderNewer