Skip to content

Instantly share code, notes, and snippets.

@mrtony
mrtony / main.dart
Created April 17, 2023 14:16
cylindrical-sparkle-5852
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@mrtony
mrtony / react_formik_yup_checkbox_validation.md
Created October 15, 2018 01:31
React formik yup checkbox, radio button validation
import "./formik-demo.css";
import React from "react";
import { render } from "react-dom";
import { Formik, Field } from "formik";
import Yup from "yup";
import classNames from "classnames";

// Input feedback
@mrtony
mrtony / SassVariableScoping.md
Created October 10, 2018 04:14
Sass - Variable Scoping

限制變數在特定範圍中, 避免污染全域

.container {
  $rhythm: 1em;
  margin: 0 auto;
  max-width: 42em;
  padding: 0 $rhythm;
  p {
  text-indent: $rhythm;
 }
@mrtony
mrtony / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Another change page example" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<title>JQM latest</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/git/jquery.mobile-git.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>