Skip to content

Instantly share code, notes, and snippets.

View theachoem's full-sized avatar
:octocat:
Exploring Javascript Frameworks!

Thea Choem theachoem

:octocat:
Exploring Javascript Frameworks!
View GitHub Profile
@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 December 8, 2023 16:06
Uninstall MongoDB on Mac

How to Completely Uninstall MongoDB Community on macOS Catalina

From this post on the IntelliPaat forum.

This guide assumes that MongoDB Community was installed on macOS Catalina using brew install mongodb-community@4.2. Refer to MongoDB Manual: Install on MacOS for installation instructions.

Commands to Uninstall

@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 July 17, 2024 13:16
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 July 25, 2024 13:42
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 July 16, 2024 04:45
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

@komuw
komuw / pycrypto_DES3.py
Last active March 28, 2023 06:35
python DES3(triple DES encryption)
`pip install pycrypto`
from Crypto.Cipher import DES3
from Crypto import Random
key = 'Sixteen byte key'
iv = Random.new().read(DES3.block_size) #DES3.block_size==8
cipher_encrypt = DES3.new(key, DES3.MODE_OFB, iv)
plaintext = 'sona si latine loqueri ' #padded with spaces so than len(plaintext) is multiple of 8
encrypted_text = cipher_encrypt.encrypt(plaintext)