Skip to content

Instantly share code, notes, and snippets.

Doula Life Privacy Policy

We do not store your data anywhere.

We do not have anywhere to store data.

All information entered into Doula Life will remain on your device until you explicitly tell the application to share it. This sharing can include with your Calendar, or exporting data to another service. Again, this is only available if you elect to do so.

Both iOS and Android will periodically backup the application data to their servers (like all apps) in case of a lost or damaged phone.

@chris84948
chris84948 / love2D_build.bat
Created October 18, 2018 21:20
Batch script to create final exe for any Love2D project
del /F /Q build
copy /b "C:\program files\LOVE\love.exe"+%1 "%~n1.exe"
mkdir build
copy "C:\program files\LOVE\*.dll" build
move "%~n1.exe" "build/%~n1.exe"
@chris84948
chris84948 / flutter_list_and_dialog_example
Created March 27, 2018 21:28
Full example of dart.main from the flutter list + dialog example on InsertBreakpoint.Wordpress.com
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:numberpicker/numberpicker.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>MultiConverter</Title>
<Author>chris84948</Author>
<Description>
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Converter</Title>
<Author>chris84948</Author>
<Description>
@chris84948
chris84948 / Navigator.cs
Created June 30, 2017 19:56
Navigation service for ViewModel first navigation in Xamarin
using LiteSourceGo.ViewModels;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xamarin.Forms;
public class Navigator
{
static Navigator instance;
@chris84948
chris84948 / SQL_Class_Generator.sql
Created August 27, 2016 01:00
Creates the C# Class and DataTable converter function
declare @TableName sysname = 'TestTable'
IF OBJECT_ID('tempdb..#ClassData') IS NOT NULL
DROP TABLE #ClassData
CREATE TABLE #ClassData
(
ColumnName nvarchar(max),
ColumnId int,
ColumnType nvarchar(max),
insert into TestTable (Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7, Bit8, Bit9, Bit10, Float1, Float2, Float3, Float4, Float5, Float6, Float7, Float8, Float9, Float10, Int1, Int2, Int3, Int4, Int5, Int6, Int7, Int8, Int9, Int10, VarChar1, VarChar2, VarChar3, VarChar4, VarChar5, VarChar6, VarChar7, VarChar8, VarChar9, VarChar10) values (0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 32.78, 78.09, 3.34, 94.89, 50.68, 38.0, 93.56, 86.49, 97.1, 36.04, 57, 64, 41, 80, 2, 97, 71, 48, 78, 31, 'consequat morbi a ipsum integer a nibh in quis justo', 'in faucibus orci luctus et ultrices posuere', 'lacus morbi quis tortor id nulla ultrices aliquet', 'sagittis nam congue risus semper', 'dignissim vestibulum vestibulum ante ipsum', 'ultrices', 'molestie lorem quisque ut erat', 'duis mattis egestas metus aenean fermentum donec', 'et ultrices posuere cubilia curae nulla dapibus dolor vel', 'semper rutrum nulla nunc purus phasellus in felis');
insert into TestTable (Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7, Bit8, Bit9, Bit10, Float1, Float2, Fl
using FastMember;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
namespace SQLSpeedTester
{
public static class Helper
public class ColorPicker
{
private double _brightness, _saturation, _hue;
private Color mainColor;
public ColorPicker(Color color)
{
this.mainColor = color;
// Use color object from different namespace to get extra methods