GDL Italia - Introduzione a Dart: editor e codice di esempio
Dart, Web UI + js libraries, Google+ API
Dart: importing local libraries with git
We have a couple of ways to manage application’s dependencies with pub, we can
- import a hosted package
- clone a git repository
Just to be clear, hosted packages are not hosted on a general server, they are hosted on a pub server; since setting up our own local pub server or taking advantage of pub-cache could be really tricky, a safe and fast way to import local packages is doing it via the git system.
Mute the Mac OS X startup sound, the fastest way
Copy/paste lines below and put in your password when prompted to disable OS X startup chime.
This code will create two shell scripts,
/usr/local/bin/mute that will execute these AppleScripts:
After this, the code will bind those scripts to the LoginHook and LogoutHook handlers: when you will log out, sound will be muted, after you logged in, sound will be un-muted.
If you want to restore startup chime, type:
Mac OS X: Launch Terminal from keyboard shortcut
OSX as is doesn't allow users to set keyboard shortcuts to launch applications, but there are a bunch of 3rd-party softwares and workarounds to achieve that.
If you don't want to use a 3d-party app then the best way to do that is creating a service that just launches an application, and then bind it to a given keyboard shortcut. Let's start:
Open Automator.app and choose new "Service" document
In the right tab, set "Service receives" to "no input", then drag and drop "Run AppleScript" action to the workflow:
"Run AppleScript" is located under "Utility" section.
Set the content of the script to:
- Save the document as "Open Terminal" (or whatever) and close Automator.app
Go to System Preferences->Keyboard->Keyboard Shortcuts->Services, then scroll until you find your new service under General section and assign it a shortcut.
This works with all of the applications, you just have to replace
Terminal with what you want.