This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Blade Component */ | |
<div | |
x-data="{ | |
value: @entangle($attributes->wire('model')), | |
isFocused() { return document.activeElement !== this.$refs.trix }, | |
setValue() { this.$refs.trix.editor.loadHTML(this.value) }, | |
}" | |
x-init="setValue(); $watch('value', () => isFocused() && setValue())" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div | |
x-data="{ value : @entangle($attributes->wire('model')) }" | |
x-on:change="value = $event.target.value" | |
x-init=" | |
new Pikaday({ field: $refs.input, 'format': 'MM/DD/YYYY' });" | |
> | |
<div class="relative mt-2"> | |
<input | |
{{ $attributes->whereDoesntStartWith('wire:model') }} | |
x-ref="input" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lion includes a new technology called "AirDrop" which is Apple's name for adhoc wifi data exchange. | |
# | |
# When two machines that both run Lion are visible to each other (nearby , "ad hoc networked"), | |
# users can launch Finder, go to "Airdrop" in the sidebar and will see each others Machine. | |
# You then can simply drag and drop all sort of documents onto the icon of the mac next yours | |
# without having to think about setting up a network or dig deeply into Networking details. | |
# | |
# This new technology is not enabled for all wifi "Airport" cards and never for 3rd party devices | |
# (usb dongles , pci cards etc that have OS X drivers available) | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just used this to hide “ScanSnap Manager.app” or "iTerm.app" from my Dock | |
# Quit and re-start your app after applying the setting to see it in effect. | |
# Hide Application from Dock: | |
defaults write /Applications/Application.app/Contents/Info LSUIElement 1 | |
# Show Application in Dock: |