Skip to content

Instantly share code, notes, and snippets.

func isEveRunning() -> Bool {
let regularApps = NSWorkspace().runningApplications.filter{$0.activationPolicy == NSApplicationActivationPolicy.Regular}.map{$0.bundleIdentifier!!}
return contains(regularApps, "com.transgaming.EVEOnline")
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary
SYSTEM 'file://localhost/System/Library/DTDs/sdef.dtd'>
<dictionary>
<suite code="????" description="Common classes and commands for most applications." name="Standard Suite">
<command code="aevtodoc" description="Open an alias." name="open">
<direct-parameter description="The alias to be opened." type="file"/>
</command>
<command code="aevtpdoc" description="Print an object." name="print">
<direct-parameter description="The file(s) or document(s) to be printed." type="file"/>

Keybase proof

I hereby claim:

  • I am marvi on github.
  • I am marvi (https://keybase.io/marvi) on keybase.
  • I have a public key whose fingerprint is D4E3 ADFF CBDC 5867 DC7B 2CAF BE62 8F0D 5752 0996

To claim this, I am signing this object:

@marvi
marvi / gist:4317355
Created December 17, 2012 10:42
Backbone: start
_.templateSettings = {
interpolate: /\{\{=(.+?)\}\}/g,
evaluate: /\{\{(.+?)\}\}/g
};
// We begin by creating a namespace `xx`. Choose the name you want.
var App = {};
// Then the view namespace.
// We will put class (starting with an upper case),
@marvi
marvi / LiturgicalYear.java
Created August 24, 2011 15:00
Uträkning av kyrkoåret
package lectio.cal;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
import java.util.TreeMap;
import org.joda.time.DateTimeConstants;
import org.joda.time.LocalDate;