Major 2025 Update: PostgreSQL now recommends identity columns over serial types. Drizzle has fully embraced this change.
import { pgTable, integer, text, timestamp, varchar } from 'drizzle-orm/pg-core';| import type { RemoteFormInput } from "@sveltejs/kit"; | |
| import { command, form, query } from "$app/server"; | |
| import { Effect, Schema } from "effect"; | |
| /** | |
| * Creates a remote query defined with `Effect`. Shares the same behaviour as | |
| * SvelteKit's `query`. | |
| * | |
| * @param schema The `Schema` to validate arguments against. | |
| * @param handler The `Effect` to run when this function is ran. |
Major 2025 Update: PostgreSQL now recommends identity columns over serial types. Drizzle has fully embraced this change.
import { pgTable, integer, text, timestamp, varchar } from 'drizzle-orm/pg-core';| type CamelCase<S extends string> = S extends `${infer P1}_${infer P2}${infer P3}` | |
| ? `${Lowercase<P1>}${Uppercase<P2>}${CamelCase<P3>}` | |
| : Lowercase<S> | |
| type KeysToCamelCase<T> = { | |
| [K in keyof T as CamelCase<string & K>]: T[K] | |
| } | |
| type CamelToSnakeCase<S extends string> = S extends `${infer T}${infer U}` ? |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
| (function (window, angular, $) { | |
| var root = angular.element(document.getElementsByTagName('body')); | |
| /** | |
| * Finds watchers attached for the element. | |
| * | |
| * @param {Object} element Html element to look for watchers | |
| * @return {Object[]} | |
| */ | |
| var _findWatchers = function (element) { |
| #!/bin/bash | |
| #Install Laravel Homestead (http://laravel.com/docs/5.0/homestead) | |
| #ssh into Homestead "homestead ssh" | |
| #Run the script using "sudo bash homestead_extras.sh" | |
| #Leave all the default options sugested during the installation, and do not modify any files!! | |
| apt-get update | |
| #Additional Packages | |
| apt-get install -y php5-ldap php5-mssql |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
| ::-webkit-scrollbar { | |
| background: transparent; | |
| overflow: visible; | |
| width: 17px; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background-color: rgba(0, 0, 0, 0.2); | |
| border: solid #fff; | |
| } |