Skip to content

Instantly share code, notes, and snippets.

View swiftui_mvvm.md

일본어 블로그 아티클의 @young의 번역글 입니다. 의역이 포함되어 있습니다.


"SwiftUI에서 MVVM 사용을 멈추자"라고 생각이 들었던 이유

선언적인 UI에서, MVVM이 불필요한 이유는?

@sangeeths
sangeeths / github-to-bitbucket
Created Mar 10, 2014
Forking a Github repo to Bitbucket
View github-to-bitbucket
Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone git@bitbucket.org:abc/myforkedrepo.git
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync git@github.com:def/originalrepo.git
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v
@fritzy
fritzy / 1_triggers.sql
Last active Oct 30, 2022
Get table change notifications from Postgres as JSON
View 1_triggers.sql
CREATE OR REPLACE FUNCTION table_update_notify() RETURNS trigger AS $$
DECLARE
id bigint;
BEGIN
IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN
id = NEW.id;
ELSE
id = OLD.id;
END IF;
PERFORM pg_notify('table_update', json_build_object('table', TG_TABLE_NAME, 'id', id, 'type', TG_OP)::text);
@harubaru
harubaru / wd1-3-release.md
Last active Oct 30, 2022
Official Release Notes for Waifu Diffusion 1.3
View wd1-3-release.md
@ih2502mk
ih2502mk / list.md
Last active Oct 30, 2022
Quantopian Lectures Saved
View list.md
View Effective_Engineer.md

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@adrianhajdin
adrianhajdin / StateContext.js
Last active Oct 30, 2022
Build and Deploy a Modern Full Stack ECommerce Application with Stripe
View StateContext.js
import React, { createContext, useContext, useState, useEffect } from 'react';
import { toast } from 'react-hot-toast';
const Context = createContext();
export const StateContext = ({ children }) => {
const getLocalStorage = (name) => {
if (typeof window !== 'undefined') {
const storage = localStorage.getItem(name);
@pilgwon
pilgwon / TCA_README_KR.md
Last active Oct 30, 2022
TCA README in Korean
View TCA_README_KR.md

The Composable Architecture

The Composable Architecture(TCA)는 일관되고 이해할 수 있는 방식으로 어플리케이션을 만들기 위해 탄생한 라이브러리입니다. 합성(Composition), 테스팅(Testing) 그리고 인체 공학(Ergonomics)을 염두에 둔 TCA는 SwiftUI, UIKit을 지원하며 모든 애플 플랫폼(iOS, macOS, tvOS, watchOS)에서 사용 가능합니다.

View fibers.md

Fibers

Fibers are an abstraction over sequential computation, similar to threads but at a higher level. There are two ways to think about this model: by example, and abstractly from first principles. We'll start with the example.

(credit here is very much due to Fabio Labella, who's incredible Scala World talk describes these ideas far better than I can)

Callback Sequentialization

Consider the following three functions

@agmm
agmm / obsidian-ios-sync.md
Last active Oct 30, 2022
How to sync Obsidian Notes on iOS
View obsidian-ios-sync.md

⚠️ To prevent data loss make sure you understand how rclone sync and rclone copy work.

How to sync Obsidian Notes on iOS

  1. Download iSH from the AppStore

  2. Open iSH and install rclone and nano with the following command:

apk add rclone nano