This file contains 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 generateClass(className, obj) { | |
var classes = []; | |
var buffer = []; | |
for (var p in obj) { | |
if (obj.hasOwnProperty(p)) { | |
var val = obj[p], | |
type = typeof(val), | |
name = snakeToPascal(p), | |
cstype = 'object'; |
This file contains 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
ObservableCollection<$Type$> _$Name$; | |
public ObservableCollection<$Type$> $Name$ | |
{ | |
get { return _$Name$; } | |
set | |
{ | |
if (ReferenceEquals(_$Name$, value)) return; | |
_$Name$ = value; |
This file contains 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
###################### | |
# Options | |
###################### | |
REVEAL_ARCHIVE_IN_FINDER=true | |
UNIVERSAL_LIBRARY_DIR="${BUILD_DIR}/iphoneuniversal" | |
OUTPUT_DIR="${PROJECT_DIR}/Output/iphoneuniversal/" |
This file contains 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
<forms:BottomTabbedPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:forms="clr-namespace:Naxam.Controls.Forms;assembly=Naxam.BottomTabbedPage.Forms" | |
xmlns:views="clr-namespace:Naxam.Demo.Views;assembly=Naxam.Demo" | |
x:Class="Naxam.Demo.MainTabbedPage" | |
Title="BottomTabbedDemo"> | |
<views:Page1/> | |
<views:Page2/> | |
<views:Page3/> | |
<views:Page4/> |
This file contains 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
void SetupBottomTabs() | |
{ | |
BottomTabbedRenderer.BackgroundColor = new Color(23, 31, 50); | |
BottomTabbedRenderer.FontSize = 12.5f; | |
BottomTabbedRenderer.IconSize = 16; | |
BottomTabbedRenderer.ItemTextColor = stateList; | |
BottomTabbedRenderer.ItemIconTintList = stateList; | |
BottomTabbedRenderer.Typeface = Typeface.CreateFromAsset(this.Assets, "architep.ttf"); | |
BottomTabbedRenderer.ItemBackgroundResource = Resource.Drawable.bnv_selector; | |
BottomTabbedRenderer.ItemSpacing = 24; |
This file contains 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
def scroll_to_edge(uiquery, direction) | |
allowed_directions = [:up, :down] | |
dir_symbol = direction.to_sym | |
unless allowed_directions.include?(dir_symbol) | |
raise ArgumentError, "Expected '#{direction} to be one of #{allowed_directions}" | |
end | |
lastYOffset = 99999999.0 * (dir_symbol == :up ? 1 : -1) | |
while true |
This file contains 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
static class HttpContentExtensions | |
{ | |
public static async Task<T> DeserializeJsonObjectAsync<T>(this HttpContent content) | |
{ | |
using (var stream = await content.ReadAsStreamAsync()) | |
{ | |
using (var textReader = new StreamReader(stream)) | |
{ | |
using (var jsonReader = new JsonTextReader(textReader)) | |
{ |
This file contains 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 static readonly BindableProperty $Name$Property = BindableProperty.Create( | |
nameof($Name$), | |
typeof($Type$), | |
typeof($Class$), | |
default($Type$), | |
BindingMode.$Mode$); | |
public $Type$ $Name$ | |
{ | |
get { return ($Type$)GetValue($Name$Property); } | |
set { SetValue($Name$Property, value); } |
This file contains 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 ClassSample | |
{ | |
pubic static readonly string StatidFieldA; | |
pubic static readonly string StatidFieldZ; | |
private static readonly string StatidFieldA; | |
private static readonly string StatidFieldZ; | |
public event EventHandler EventA; | |
public event EventHandler EventZ; |
OlderNewer