Some examples related to my tweet rant https://twitter.com/dsymetweets/status/1294276915260522496
In project programming this hit me this week with a bug:
Some examples related to my tweet rant https://twitter.com/dsymetweets/status/1294276915260522496
In project programming this hit me this week with a bug:
| * Reducing executable size: | |
| http://developer.xamarin.com/guides/cross-platform/deployment,_testing,_and_metrics/memory_perf_best_practices/#Reducing_Executable_Size | |
| * Use the linker (iOS [1], Android [2]) to remove unnecessary code from your assemblies | |
| [1] https://developer.xamarin.com/guides/ios/advanced_topics/linker | |
| [2] https://developer.xamarin.com/guides/android/advanced_topics/linking | |
| * Reference third-party libraries judiciously | |
| * Applying constraints to generics may reduce app size, since less code would need to be included (haven’t verified this) |
| // file: keybindings.json | |
| // path: AppData\Roaming\Code\User | |
| // Author: Claudio Bartoli | |
| // Mail: [email protected] | |
| // -------------------------------------------- | |
| // Resharper 9 Default Keymap - IntelliJ Scheme | |
| // -------------------------------------------- | |
| [ | |
| { "key": "ctrl+d", "command": "editor.action.copyLinesDownAction", |
| // Define gulp before we start | |
| var gulp = require('gulp'); | |
| // Define Sass and the autoprefixer | |
| var sass = require('gulp-sass'); | |
| var prefix = require('gulp-autoprefixer'); | |
| // This is an object which defines paths for the styles. | |
| // Can add paths for javascript or images for example | |
| // The folder, files to look for and destination are all required for sass |
| /// <summary> | |
| /// Type mapping api | |
| /// </summary> | |
| public interface IMapper | |
| { | |
| /// <summary> | |
| /// Maps the specified source type instance to destination type instance. | |
| /// </summary> | |
| /// <typeparam name="TSource">Source type.</typeparam> | |
| /// <typeparam name="TDestination">Destination type.</typeparam> |
Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh
Easily checkout local copies of pull requests from remotes:
git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it outgit pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out| using System; | |
| using CrossUI.Touch.Dialog.Elements; | |
| using System.Drawing; | |
| using MonoTouch.UIKit; | |
| using MonoTouch.Foundation; | |
| using CrossUI.Touch.Dialog; | |
| /// <summary> | |
| /// Multiline entry element. | |
| /// </summary> |
Download SourceGear DiffMerge: http://sourcegear.com/diffmerge/index.html
Add the following to your global .gitconfig file:
[diff]
tool = DiffMerge
[difftool "DiffMerge"]
cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' "$LOCAL" "$REMOTE"
[merge]
tool = DiffMerge
| //MIT license | |
| public static UIImage ScaleImage(UIImage image, int maxSize) | |
| { | |
| UIImage res; | |
| using (CGImage imageRef = image.CGImage) | |
| { | |
| CGImageAlphaInfo alphaInfo = imageRef.AlphaInfo; |