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
| #!/usr/bin/env ruby | |
| require 'watir-webdriver' | |
| def log (message) puts " #{message}" end | |
| def success (message) puts "+ #{message}" end | |
| def fail (message) puts "- #{message}" end | |
| def notify (message) | |
| success message.upcase | |
| system 'osascript -e \'Display notification "Bürgerbot" with title "%s"\'' % message | |
| rescue StandardError => e |
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
| # Based on idan's script | |
| function _git_branch_name | |
| echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
| end | |
| function _is_git_dirty | |
| echo (command git status -s --ignore-submodules=dirty ^/dev/null) | |
| end |
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 com.willowtreeapps.demo; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.view.KeyEvent; | |
| import android.view.Window; | |
| import android.webkit.WebView; | |
| import android.webkit.WebViewClient; | |
| public class MainActivity extends Activity { |
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
| <html> | |
| <head> | |
| <title>Checkbox</title> | |
| <style> | |
| input[type=checkbox] { | |
| display:none; | |
| } | |
| input[type=checkbox] + label | |
| { |
NewerOlder