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; | |
| using System.Linq.Expressions; | |
| using UIKit; | |
| namespace Async.iOS | |
| { | |
| public static class Layout | |
| { |
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
| # I have issues with OS X's defaults. Luckily, most are easy to change. | |
| # This is heavily based on saetia's gist: https://gist.github.com/saetia/1623487 | |
| # Disable autocomplete, which effectively disables that really stupid Escape key autocomplete handler | |
| defaults write -g NSUseSpellCheckerForCompletions -bool false | |
| # Disable window animations | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
| # Expand save panel by default |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- Generated by: TmTheme-Editor --> | |
| <!-- ============================================ --> | |
| <!-- app: http://tmtheme-editor.herokuapp.com --> | |
| <!-- code: https://github.com/aziz/tmTheme-Editor --> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>author</key> | |
| <string>O'rlmente?</string> |
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.Diagnostics; | |
| namespace EnumParsing | |
| { | |
| class TestParseEnum | |
| { | |
| enum DebugLevelEnum : int | |
| { | |
| Invalid = -1, |
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
| ' (From Eyewear Stock & Sales project) | |
| Imports System.Reflection | |
| Public Class ctlFooter | |
| Inherits System.Web.UI.UserControl | |
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load | |
| Dim t As Type = GetType(ctlFooter) |
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
| Dim fileName as String | |
| fileName = "C:\Windows\notepad.exe" | |
| Shell "explorer.exe /e,/select," & fileName, vbNormalFocus |
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
| Function GenGuid() As String | |
| Dim TypeLib As Object | |
| Dim guid As String | |
| Dim guid2 As String | |
| Set TypeLib = CreateObject("Scriptlet.TypeLib") | |
| guid = Left$(TypeLib.guid, 38) | |
| Set TypeLib = Nothing | |
| ' format is {24DD18D4-C902-497F-A64B-28B2FA741661} | |
| guid = Replace(guid, "{", "") |
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
| var frame = UIApplication.SharedApplication.KeyWindow.Screen.Bounds; |
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
| //As suggested by @TomPratt http://forums.xamarin.com/discussion/28460/uitableview-update-the-cells-not-a-full-reload | |
| tableView.BeginUpdates(); | |
| tableView.ReloadRows(tableView.IndexPathsForVisibleRows, UITableViewRowAnimation.Automatic); | |
| tableView.EndUpdates(); |
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
| Response.AppendHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. | |
| Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.0. | |
| Response.AppendHeader("Expires", "0"); // Proxies. |