Skip to content

Instantly share code, notes, and snippets.

View ducva's full-sized avatar

Vu Anh Duc ducva

  • Resola.ai
  • Viet Nam
View GitHub Profile
@shilman
shilman / storybook-docs-typescript-walkthrough.md
Last active January 29, 2025 02:47
Storybook Docs Typescript Walkthrough

Storybook Docs w/ CRA & TypeScript

This is a quick-and-dirty walkthrough to set up a fresh project with Storybook Docs, Create React App, and TypeScript. If you're looking for a tutorial, please see Design Systems for Developers, which goes into much more depth but does not use Typescript.

The purpose of this walkthrough is a streamlined Typescript / Docs setup that works out of the box, since there are countless permutations and variables which can influence docs features, such as source code display, docgen, and props tables.

Step 1: Initialize CRA w/ TS

npx create-react-app cra-ts --template typescript
@savannidgerinel
savannidgerinel / Root directory listing
Last active March 10, 2024 21:31
Nix setup for a Golang dev environment
[go-shell] savanni@lapis:~/src/golang $ ls -l
total 81928
drwxr-xr-x 5 savanni staff 160 Dec 17 2018 bin
drwxr-xr-x 4 savanni staff 128 Jun 11 2018 pkg
-rw-r--r-- 1 savanni staff 923 Jun 11 2018 shell.nix
drwxr-xr-x 9 savanni staff 288 Jun 10 2018 src
@jgold6
jgold6 / gist:a1e60e0bb24ccdd2b2b8
Last active April 17, 2023 05:28
Xamarin Reduce App Size
* Reducing executable size:
http://developer.xamarin.com/guides/cross-platform/deployment,_testing,_and_metrics/memory_perf_best_practices/#Reducing_Executable_Size
* Use the linker (iOS [1], Android [2]) to remove unnecessary code from your assemblies
[1] https://developer.xamarin.com/guides/ios/advanced_topics/linker
[2] https://developer.xamarin.com/guides/android/advanced_topics/linking
* Reference third-party libraries judiciously
* Applying constraints to generics may reduce app size, since less code would need to be included (haven’t verified this)
@next-marianmoldovan
next-marianmoldovan / pipelines.py
Last active December 3, 2022 12:42
JSON UTF-8 Pipeline Scrapy
import json, io, codecs, os
from scrapy.xlib.pydispatch import dispatcher
from scrapy import signals
class BeevaPipeline(object):
def __init__(self):
dispatcher.connect(self.spider_opened, signals.spider_opened)
dispatcher.connect(self.spider_closed, signals.spider_closed)
@vertexclique
vertexclique / cracking.md
Last active October 31, 2025 20:48
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text