Skip to content

Instantly share code, notes, and snippets.

View popeyelau's full-sized avatar
:octocat:
To the stars!

Popeye Lau popeyelau

:octocat:
To the stars!
View GitHub Profile
@popeyelau
popeyelau / XCDFakeCarrier.m
Last active March 19, 2020 05:23 — forked from 0xced/XCDFakeCarrier.m
Hack to choose the displayed carrier name in the iOS simulator|-|{"files":{"XCDFakeCarrier.m":{"env":"plain"}},"tag":"Gists"}
//
// Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved.
//
#import <Foundation/Foundation.h>
#if TARGET_OS_SIMULATOR
static const char *fakeCarrier;
static const char *fakeTime;
@popeyelau
popeyelau / tmux-cheatsheet.markdown
Last active March 19, 2020 05:23 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet|-|{"files":{"tmux-cheatsheet.markdown":{"env":"plain"}},"tag":"Gists"}

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@popeyelau
popeyelau / analysis_options.yaml
Last active March 19, 2020 05:23
Dart/Flutter analysis options file.|-|{"files":{"analysis_options.yaml":{"env":"plain"}},"tag":"Gists"}
# https://dart.dev/guides/language/analysis-options
include: package:pedantic/analysis_options.yaml
#include: package:effective_dart/analysis_options.yaml
analyzer:
exclude:
- 'example/**'
- 'build/**'
- '**.g.dart'
import 'package:flutter/material.dart';
import 'dart:math' as math;
import 'dart:async';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@popeyelau
popeyelau / main.dart
Created December 10, 2020 02:05 — forked from PlugFox/main.dart
Simple form managment
/// http://dartpad.dev/981a8d2145a9878dae2b52aebd9fae88
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) => const MaterialApp(