Skip to content

Instantly share code, notes, and snippets.

View mosluce's full-sized avatar

mosluce mosluce

View GitHub Profile
import calendar
import time
from diffusers import StableDiffusionPipeline
current_GMT = time.gmtime()
time_stamp = calendar.timegm(current_GMT)
model_id = "gsdf/Counterfeit-V2.5"
pipe = StableDiffusionPipeline.from_pretrained(model_id)
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@mosluce
mosluce / main.dart
Created August 23, 2022 03:40
MySliverPersistentHeader example
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:intl/intl.dart';
import 'package:signbook/app/data/models/sign_model.dart';
import '../controllers/map_controller.dart';
class MapView extends GetView<MapController> {
@override
@mosluce
mosluce / package.json
Last active May 8, 2021 06:51
vscode + ts + nodemon => backend auto restart development env
{
"name": "klcc-api-core",
"version": "1.0.0",
"main": "index.js",
"author": "mosluce",
"license": "MIT",
"dependencies": {
"express": "^4.17.1",
"parse-server": "4.5.0"
},
@mosluce
mosluce / .eslintrc
Last active May 8, 2021 05:45
vscode + nodemon + babel-node => backend development env
{
"rules": {},
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
@mosluce
mosluce / .eslintrc
Created May 7, 2021 17:17
webpack + babel-loader + vscode
{
"rules": {},
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
using System.Reflection;
using System.Threading;
using UnityEditor;
using UnityEngine;
public static class EditorAsyncPump {
[InitializeOnLoadMethod]
static void Initialize() {
Debug.Log("Pump Initialize");
EditorApplication.update += ExecuteContinuations;
@mosluce
mosluce / BorderDesignable.swift
Last active April 12, 2020 11:32
Protocol Oriented 結合 UIView 及 IBDesignable+IBInspectable 練習
//
// BorderDesignable.swift
// Gotyou
//
// Created by 默司 on 2016/11/28.
// Copyright © 2016年 默司. All rights reserved.
//
import Foundation
import UIKit