Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
// Remember to install mini-svg-data-uri | |
// Follow me on twitter for memes @jordienr | |
import { type Config } from "tailwindcss"; | |
const { | |
default: flattenColorPalette, | |
} = require("tailwindcss/lib/util/flattenColorPalette"); | |
const svgToDataUri = require("mini-svg-data-uri"); | |
export default { |
Add the following in .zshrc: | |
... | |
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
... | |
### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
pasteinit() { | |
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |
function saveJSON(data, saveAs){ | |
var stringified = JSON.stringify(data, null, 2); | |
var blob = new Blob([stringified], {type: "application/json"}); | |
var url = URL.createObjectURL(blob); | |
var a = document.createElement('a'); | |
a.download = saveAs + '.json'; | |
a.href = url; | |
a.id = saveAs; | |
document.body.appendChild(a); |
alias: Ashley’s Light Fader | |
description: > | |
Fades a lamp over time. If you have any questions or comments about this | |
script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under | |
the Apache 2.0 license. (v2.0) | |
fields: | |
light: | |
name: 💡 Light | |
description: entity_id of the lamp. | |
selector: |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
import { BottomSheetModal, BottomSheetModalProps } from '@gorhom/bottom-sheet'; | |
import { useCallback, useRef } from 'react'; | |
import { BackHandler, NativeEventSubscription } from 'react-native'; | |
/** | |
* hook that dismisses the bottom sheet on the hardware back button press if it is visible | |
* @param bottomSheetRef ref to the bottom sheet which is going to be closed/dismissed on the back press | |
*/ | |
export const useBottomSheetBackHandler = ( | |
bottomSheetRef: React.RefObject<BottomSheetModal | null>, |
swagger: '2.0' | |
info: | |
title: Vector DB Client API | |
version: '1.0.0' | |
host: 'your-api.com' | |
schemes: | |
- https | |
basePath: /api/v1 | |
produces: | |
- application/json |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
# add a new migration to the delayed_job table to track uniqueness | |
class AddSignatureToDelayedJobs < ActiveRecord::Migration[7.0] | |
def change | |
add_column :delayed_jobs, :signature, 'varchar(64)', index: true | |
end | |
end |