- add
ipaddr.pyto/home/root/and runchmod +x ipaddr.py - Add
ipaddr.serviceto/lib/systemd/system(note: lib not etc) - test it:
$ systemctl daemon-reload
$ systemctl start ipaddr.service
$ systemctl status ipaddr.service- make it run on startup:
ipaddr.py to /home/root/ and run chmod +x ipaddr.pyipaddr.service to /lib/systemd/system (note: lib not etc)$ systemctl daemon-reload
$ systemctl start ipaddr.service
$ systemctl status ipaddr.service| import GHCJS.DOM.Types (Element, unElement) | |
| import GHCJS.DOM.Element (toElement) | |
| import GHCJS.Prim (JSRef) | |
| -- http://www.getmdl.io/started/index.html#dynamic | |
| #ifdef __GHCJS__ | |
| foreign import javascript unsafe "componentHandler.upgradeElement($1);" | |
| materialInitJS :: JSRef Element -> IO () | |
| #else | |
| materialInitJS = error "y u no javascript?" |
| data WidgetConfig t a | |
| = WidgetConfig { _widgetConfig_setValue :: Event t a | |
| , _widgetConfig_initialValue :: a | |
| , _widgetConfig_attributes :: Dynamic t (Map String String) | |
| } | |
| makeLenses ''WidgetConfig | |
| instance (Reflex t, Default a) => Default (WidgetConfig t a) where | |
| def = WidgetConfig { _widgetConfig_setValue = never |
| #printf | |
| RUN printf '#!/bin/bash\n\ | |
| echo hello world from line 1\n\ | |
| echo hello world from line 2\n'\ | |
| > /tmp/hello | |
| ## or you can use >> | |
| RUN cat /tmp/hello | |
| #echo |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Polymer CSS test</title> | |
| <script src="packages/web_components/platform.js"></script> | |
| <script src="packages/web_components/dart_support.js"></script> | |
| <link rel="import" href="test_element.html"> | |
| </head> | |
| <body> | |
| <span class="foo"> |
| name := "ScalaOptionToGuavaOptional" | |
| scalaVersion := "2.10.2" | |
| libraryDependencies += "com.google.guava" % "guava" % "14.0.1" | |
| libraryDependencies += "com.google.code.findbugs" % "jsr305" % "2.0.1" |
| import java.net.URI | |
| import org.java_websocket.client.WebSocketClient | |
| import org.java_websocket.handshake.ServerHandshake | |
| import spray.json._ | |
| class MazClient(serverUri : URI) extends WebSocketClient(serverUri : URI) { | |
| override def onOpen(handshakedata: ServerHandshake) { | |
| println("opened") | |
| } | |
| override def onMessage(message: String) { |
| (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
| ("marmalade" . "http://marmalade-repo.org/packages/") | |
| ("melpa" . "http://melpa.milkbox.net/packages/"))) | |
| (package-initialize) ;;load all the stuff that doesn't automatically get added into the load-path -> this should not be necessary | |
| (require 'evil) | |
| (evil-mode 1) | |
| (require 'powerline) |