Skip to content

Instantly share code, notes, and snippets.

View theachoem's full-sized avatar
🌸
Working on StoryPad Premium

Thea Choem theachoem

🌸
Working on StoryPad Premium
View GitHub Profile
@SSambo12
SSambo12 / cally_controller.js
Last active March 21, 2025 11:43
Date Picker with Cally & Daisy & Stimulus
// Make sure to install cally via npm, CDN or importmap.
// Example usage: <input type="date" class="input" name="dob" data-controller="cally">
import { Controller } from "@hotwired/stimulus";
import "cally";
export default class extends Controller {
connect() {
this.element.addEventListener("click", this.open.bind(this));
}
@aagarwal1012
aagarwal1012 / flutter-ci.yml
Last active March 23, 2024 11:54
CI for your Flutter apps on GitHub Actions.
name: Flutter CI
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- master
# on: push # Default will running for every branch.
@median-man
median-man / mongodb-mac-uninstall.md
Last active October 24, 2024 16:38
Uninstall MongoDB on Mac
@slightfoot
slightfoot / fling_physics.dart
Last active May 19, 2023 14:59
Fling PageScrollPhysics for Flutter
// MIT License
//
// Copyright (c) 2023 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@roipeker
roipeker / image_color_picker_widget.dart
Last active January 21, 2025 13:18
Basic image pixel color detection in Flutter (supports screenshots of the widget tree)
//////////////////////////////
//
// 2019, roipeker.com
// screencast - demo simple image:
// https://youtu.be/EJyRH4_pY8I
//
// screencast - demo snapshot:
// https://youtu.be/-LxPcL7T61E
//
//////////////////////////////
@debuggerx01
debuggerx01 / visible_items_of_listview.dart
Last active July 2, 2024 08:03
Visible Items of ListView Demo
import 'package:flutter/material.dart';
import 'package:rect_getter/rect_getter.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Visible Demo',
@candostdagdeviren
candostdagdeviren / Fastfile
Created May 7, 2018 12:45
iOS Fastfile Example for Flutter application Fastlane integration
fastlane_version "2.84.0"
xcversion(version: "9.2")
default_platform :ios
lane :certificates do
match(
app_identifier: ["com.jimdo.boost"],
type: "appstore",
readonly: true)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 2, 2025 07:59
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@tomysmile
tomysmile / mac-setup-redis.md
Last active April 28, 2025 11:58
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@zulhfreelancer
zulhfreelancer / heroku_pg_db_reset.md
Last active June 17, 2024 11:44
How to reset PG Database on Heroku (for Rails app)?

It's important to note that running this reset will drop any existing data you have in the application

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner