Skip to content

Instantly share code, notes, and snippets.

import 'dart:async';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:shared_preferences/shared_preferences.dart';
final sharedPreferencesProvider = Provider<SharedPreferences>(
(ref) => throw UnimplementedError(),
@mono0926
mono0926 / commit_message_example.md
Last active September 18, 2024 07:52
[転載] gitにおけるコミットログ/メッセージ例文集100
@norio-nomura
norio-nomura / README.md
Last active November 23, 2016 23:23
SequenceType を使った Swift 2.2 のコードを Swift 3 に書き換えて、Swift 2.2でもビルド可能にする。

SequenceType を使った Swift 2.2 のコードを Swift 3 に書き換えて、Swift 2.2でもビルド可能にする。

次のSwift 2.2コードをSwift 3でビルドできるようにする。

//
//  SequenceTests.swift
//
import XCTest

class SequenceTests: XCTestCase {
@norio-nomura
norio-nomura / add_path_to_swift-build.sh
Last active March 24, 2016 16:31
Fix "dyld: Library not loaded: @rpath/libswiftCore.dylib" on swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a
sudo install_name_tool -add_rpath @executable_path/../lib/swift/macosx /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a.xctoolchain/usr/bin/swift-build
sudo install_name_tool -add_rpath @executable_path/../lib/swift/macosx /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a.xctoolchain/usr/bin/swift-test
@norio-nomura
norio-nomura / How-to-use-swift-2-2-SNAPSHOT-in-xcodebuild.md
Created December 25, 2015 00:22
How to use swift-2.2-SNAPSHOT in xcodebuild

How to use swift-2.2-SNAPSHOT in xcodebuild

  1. Download Apple Platforms installer from swift.org and install it

  2. Create swift-latest.xcconfig as following contents:

     SWIFT_EXEC=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swiftc
     XCODE_DEFAULT_TOOLCHAIN_OVERRIDE=/Library/Developer/Toolchains/swift-latest.xctoolchain
    
  3. Launch xcodebuild with XCODE_XCCONFIG_FILE environment variable containing path of swift-latest.xcconfig

@norio-nomura
norio-nomura / swift-demangle-filter.py
Last active April 27, 2022 04:17
`swiftc -emit-assembly`してシンボルを`swift-demangle`で変換する
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# usage: swift-demangle-filter.py [-h] [-o <outfile>] [<file> <options>]
#
# Read swift assembly, demangle Swift Symbol and output it.
#
# positional arguments:
# <file> <options> If <file> has .swift, compile it with <options>; or read
# (<file> or <stdin>) as assembly.