Use JavaScript for Automation to rename files in batch!
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
| #!/bin/bash | |
| # downloads latest version of an artifact from artifactory | |
| set -e | |
| usage(){ | |
| echo "Usage: $*" >&2 | |
| exit 64 | |
| } |
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
| (* | |
| OmniFocus Selected Mail Messages.applescript | |
| Copyright (c) 2015 Jonathan 'Wolf' Rentzsch: http://rentzsch.com | |
| Some rights reserved: http://opensource.org/licenses/mit | |
| Pure AppleScript reimplementation of OmniGroup's Clip-o-Tron for OmniFocus. | |
| Hopefully this implementation will be more resilient against OS X, Mail, and OmniFocus updates. | |
| Successfully tested against OS X 10.10.1, OmniFocus 1.10.6, and OmniFocus 2.0.4. |
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
| on idle {} | |
| set SSID to current_SSID() | |
| if SSID contains "HOME-SSID" then | |
| if application "TogglDesktop" is running then | |
| tell application "TogglDesktop" to quit | |
| display notification "Connect " & SSID & " and stop toggl client" with title "toggle_toggl.scpt" | |
| end if | |
| else if SSID contains "OFFICE-SSID" then | |
| if application "TogglDesktop" is not running then | |
| tell application "TogglDesktop" to activate |
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
| # encoding: UTF-8 | |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # | |
| # Available Rake tasks: | |
| # | |
| # $ rake -T | |
| # rake clean # Clean some generated files | |
| # rake default # Run doc, style, unit and integration tests |
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
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| ) |
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
| package backend | |
| import akka.actor.{Actor, ActorRef, Cancellable} | |
| import scala.concurrent.duration.FiniteDuration | |
| import scala.util.control.NoStackTrace | |
| private case class SchedulerException(msg: String) extends akka.AkkaException(msg) with NoStackTrace | |
| /** |
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
| import javax.sql.DataSource; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Qualifier; | |
| import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder; | |
| import org.springframework.boot.context.properties.ConfigurationProperties; | |
| import org.springframework.boot.context.properties.EnableConfigurationProperties; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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
| import javax.mail.* | |
| import javax.mail.internet.* | |
| /* | |
| Get Any JAVAMAIL Dependency | |
| =============================== | |
| Download JAVAMAIL dependency that you need. | |
| download JAVAMAIL at : https://maven.java.net/content/repositories/releases/com/sun/mail/javax.mail/1.5.2/javax.mail-1.5.2.jar | |
| To install, copy & paste the *.jar to installed Groovy lib directory: | |
| eg: C:\Program Files (x86)\Groovy\Groovy-2.1.1\lib |