Skip to content

Instantly share code, notes, and snippets.

@t-artikov
t-artikov / main.dart
Created May 13, 2019 15:37
flutter hooks test
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
@williewillus
williewillus / primer.md
Last active April 22, 2024 15:29
1.13/1.14 update primer

This primer is licensed under CC0, do whatever you want.

BUT do note that this can be updated, so leave a link here so readers can see the updated information themselves.

1.13 and 1.14 are lumped together in this doc, you're on your own if you just want to go to 1.13 and not 1.14, for some reason.

1.15 stuff: https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e

Things in Advance

  • ResourceLocation now throw on non-snake-case names instead of silently lowercasing for you, so you probably should go and change all those string constants now. More precisely, domains must only contain alphanumeric lowercase, underscore (_), dash (-), or dot (.). Paths have the same restrictions, but can also contain forward slashes (/).
@empika
empika / OnConfirmCancelEditor
Created August 30, 2014 16:24
Editor extension for OnConfirmCancel
using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEditor;
[CustomEditor (typeof(OnConfirmCancel), true)]
public class OnConfirmCancelEditor : Editor
{
//
// Fields
@empika
empika / OnConfirmCancel
Last active August 29, 2015 14:05
Add Confirm and cancel handling to a Unity UI element
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
[Serializable]
public class ConfirmCancelEntry
{
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"