rails new ror-app-name --api
This step is for creating a very basic level of model for us to work in. If you know already, or wish to apply your own custom models with relationships you can skip this step.
rails new ror-app-name --api
This step is for creating a very basic level of model for us to work in. If you know already, or wish to apply your own custom models with relationships you can skip this step.
| # git | |
| scoop install git | |
| # add the optional 'extras' bucket | |
| scoop bucket add extras | |
| # utils | |
| scoop install colortool cmder 7zip curl sudo coreutils grep cygwin totalcommander nvm paint.net | |
| # colaboration |
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
ℹ️ Enable iCloud end-to-end encryption:
System settings → Apple ID → iCloud → Set Advanced Data Protection to On.System settings → Apple ID → iCloud → Disable Access iCloud Data on the Web.This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.
Agree? Disagree? Feel free to let me know at @JanStette.
Keep it simple, stupid. You ain't gonna need it.
| # Create postgis.control | |
| /usr/local/opt/postgresql@11/share/postgresql@11/extension/postgis.control | |
| # Manually move files to postgres folder | |
| cp /usr/local/Cellar/postgis/3.0.1/lib/*.so /usr/local/Cellar/postgresql@11/11.7/lib | |
| cp /usr/local/Cellar/postgis/3.0.1/share/postgis/*.* /usr/local/Cellar/postgresql@11/11.7/share/postgresql@11/extension | |
| # Pin formuale |
| let audioContext | |
| export function play (url) { | |
| const AudioContext = window.AudioContext || window.webkitAudioContext | |
| if (!audioContext) audioContext = new AudioContext() | |
| const request = new window.XMLHttpRequest() | |
| request.open('GET', url, true) | |
| request.responseType = 'arraybuffer' | |
| request.addEventListener('load', function (e) { | |
| const source = audioContext.createBufferSource() | |
| source.buffer = audioContext.createBuffer(request.response, false) |
| Change region of Xiaomi routers to unlock all channel: | |
| 1. Login to ur router in browser. | |
| 2. Open a new tab and paste this | |
| http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_country_code?country=CN | |
| get the stok value from login tab and replace it in new tab and then hit enter. | |
| 3. Router will reboot automatically and on next login u will see all 5Ghz channel 36~48 and 149~165. |
| // Types for the result object with discriminated union | |
| type Success<T> = { | |
| data: T; | |
| error: null; | |
| }; | |
| type Failure<E> = { | |
| data: null; | |
| error: E; | |
| }; |