Skip to content

Instantly share code, notes, and snippets.

View nyluntu's full-sized avatar

Turo Nylund nyluntu

View GitHub Profile
using System;
using System.Collections.Generic;
namespace MessClassDesign
{
class Program
{
public static Aggregate aggregate {get;set;}
static void Main(string[] args)
{
using System;
namespace MessClassDesign
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Mess Class Design");
@nyluntu
nyluntu / Animation Fade
Created July 4, 2018 21:43 — forked from aloisdeniel/Animation Fade
Xamarin.iOS view common animations
public static void Fade (this UIView view, bool isIn, double duration = 0.3, Action onFinished = null)
{
var minAlpha = (nfloat)0.0f;
var maxAlpha = (nfloat)1.0f;
view.Alpha = isIn ? minAlpha : maxAlpha;
view.Transform = CGAffineTransform.MakeIdentity ();
UIView.Animate (duration, 0, UIViewAnimationOptions.CurveEaseInOut,
() => {
view.Alpha = isIn ? maxAlpha : minAlpha;
@nyluntu
nyluntu / git-line-add-delete-per-day.sh
Created October 23, 2017 23:48 — forked from yuan3y/git-line-add-delete-per-day.sh
Get number of lines added and deleted per day from your git repo
#!/bin/bash
ds() {
date --date="$1 days ago" +%Y-%m-%d
}
BRANCH=master # your branch here
echo "Date,LinesAdded,LinesDeleted"
for day in $(seq 1 10)
@nyluntu
nyluntu / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">