Skip to content

Instantly share code, notes, and snippets.

View rmarinho's full-sized avatar

Rui Marinho rmarinho

View GitHub Profile
@rmarinho
rmarinho / gist:5964f8844896ea1bb9f1
Last active August 29, 2015 14:01
error running build.sh
mbprui:KRuntime rui$ ./build.sh
info: Target default
info: Target pre-clean
info: Target target-dir-clean
info: Target build-clean
info: Target clean
info: Target post-clean
info: Target validate
info: Target repo-initialize
info: Exec
Today we are very excited to introduce Xamarin 3, which includes four major improvements to the way you build apps.
1. Xamarin Designer for iOS
Xamarin Designer for iOS in Visual Studio
The Xamarin Designer for iOS is a powerful visual designer for iOS, allowing you to quickly lay out sophisticated UIs, intuitively add event handlers, take advantage of auto-layout, and see live previews of custom controls. No more gray boxes—you’ll see exactly what your app will look like, right on the design surface. Integrated into both Xamarin Studio and Visual Studio, we think we’ve created the world’s best UI designer for iOS.
Read our detailed overview of the Xamarin Designer for iOS, or watch the quick demo above.
2. Meet Xamarin.Forms
mbprui:XForms-Toolkit rui$ ./build.sh
XBuild Engine Version 12.0
Mono, Version 3.4.0.0
Copyright (C) 2005-2013 Various Mono authors
Build started 10/06/2014 22:52:28.
__________________________________________________
Project "/Volumes/Data/GitHub/XForms-Toolkit/build.proj" (Build target(s)):
Target Build:
Target CheckPrerequisites:
@rmarinho
rmarinho / gist:1ad6979cb5dd899a03df
Created June 28, 2014 18:08
align image on center
if(string.IsNullOrEmpty(imageButton.Text))
{
SetImage(imageButton.Image, imageButton.ImageWidthRequest, imageButton.ImageHeightRequest, targetButton);
}
else
{
SetImage(imageButton.Image, imageButton.ImageWidthRequest, imageButton.ImageHeightRequest, targetButton);
switch (imageButton.Orientation) {
// CAR$ERS AT CON SO - p /, TITLE. Punch Card Puzzle // AUTEOR Vogel // DESCRIPTION Send screens et of s .:.:essful output tc dcontosoisn-ring RX99RTOOUKL = new Systmm Collecrions-Generic.Diction ary () . RXS9RT00DRL.Add(0, Color.FromRgb(0. 0 0)):RK99RT URL.Add(1, Color,Fro2Rgb(255, 255, 255)); RX99RTOOUKL.Addi2 Coloi FromRgb(224. 64. 64)) RX99T.OOUKI. Adci 3, Color.FromRgbl96, 255, 255)) RX99RTdOUKL.Add(4 . Copt Fro gc(224. 96 224)):RX99)T00UKL.Add(5, Color.FiomRgb(64, 2 4, 64)). RX99RT00VKL.Add(6, Coior Fromitgbi64 64, 224));RX99BTODUKL.Add(7. Color.FromRgb(255. w, 55, 64))• RX99RTOOOKL.Add(9, Color FromItgb(224 160. 64));RX99RTOOUKL.Add(9, Color.FromRgb(156, 116, 72)) RK99RTOOUKL.Add(10|, coloi.Fro#gb(255 160, 160));RX99RTOOUKL.Add(ll, Colcr.FromRgb(Bq g4 g4)) RX99RTOOUKL.Add(12!, Color.FroznRgb(136 136, 136)) RX99RTOOUKL.Add(13, Colcr.FromRgb(160, 255. 160)); RX99RTOOUKL.Add(ld, Color.FrognRgb(160 , 160 255));RX99RTOOUKL.Add(15, Coldr.FromRgb(192, 192, 192))- StackPanel RGfoiEhn88 = new SpackPane 1() ( Wi
public class GridViewItemCell : UICollectionViewCell
{
public const string Key = "GridViewItemCell";
private ViewCell viewCell;
private UIView view;
public ViewCell ViewCell {
get {
return this.viewCell;
}
@rmarinho
rmarinho / numer 2
Last active August 29, 2015 14:07
Output SPHardwareDataType
MBP-de-Rui:~ ruimarinho$ system_profiler -xml SPHardwareDataType
2014-10-20 20:55:02.031 system_profiler[40298:1105773] platformPluginDictionary: Can't get X86PlatformPlugin, return value 0
2014-10-20 20:55:02.034 system_profiler[40298:1105773] platformPluginDictionary: Can't get X86PlatformPlugin, return value 0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>_SPCommandLineArguments</key>
<array>
@rmarinho
rmarinho / Mac server log
Created October 20, 2014 22:40
logs vs/macbuildhost
[20-Out-2014 23:35:05] Apple SDK developer root: /Applications/Xcode.app/Contents/Developer
[20-Out-2014 23:35:05] Server IP Address : 192.168.1.4
[20-Out-2014 23:35:06] Handling with command: [Info: CommmandUrl=Info] (10)
[20-Out-2014 23:35:06] Attempting to acquire command execution lock, timeout set to 00:10:00
[20-Out-2014 23:35:06] Starting /Developer/MonoTouch/usr/bin/mtouch --version
[20-Out-2014 23:35:07] stdout: mtouch 8.2.0.207 (3bf072d)
[20-Out-2014 23:35:07] mtouch 8.2.0.207 (3bf072d)
[20-Out-2014 23:35:07] Command [Info: CommmandUrl=Info] finished (10)
[20-Out-2014 23:35:07] Request handled in 1353,829ms
[20-Out-2014 23:35:07] Handling with command: [Login: CommmandUrl=Login] (10)
@rmarinho
rmarinho / gist:ae3f0b8df679c3c2abb0
Created October 29, 2014 11:21
How to set the id android
<Button
android:text="Action 1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/action1_button"
android:layout_weight="1"
android:layout_marginLeft="5dp" />
_app.Query(c=>c.Marked("action1_button"));
UIBUtton btn = new UIButton(new RectangleF(10, 210, 300, 40));
errorMessagesTextField.AccessibilityLabel = "error_button";
errorMessagesTextField.Text = "error";
<Button
android:text="Action 1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/error_button"
android:layout_weight="1"