This file contains 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
- name: add several users | |
user: | |
name: "{{ item.name }}" | |
state: present | |
groups: "{{ item.groups }}" | |
loop: | |
- { name: 'testuser1', groups: 'wheel' } | |
- { name: 'testuser2', groups: 'root' } |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
def greeter(greet, name) | |
return "addJob.return: #{greet}, on you #{name}" | |
end | |
def x(b) | |
return b.call("Hello", "Sven") | |
end |
This file contains 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
public void saveSettings(View view) { | |
Log.i("Debug", "@saveSettings"); | |
EditText userEdit = (EditText) findViewById(R.id.textedit_user); | |
EditText serverEdit = (EditText) findViewById(R.id.textedit_server); | |
EditText keyEdit = (EditText) findViewById(R.id.textedit_key); | |
try { | |
SharedPreferences.Editor editor = settings.edit(); | |
editor.putString("User", userEdit.getText().toString()); | |
editor.putString("Server", serverEdit.getText().toString()); | |
editor.putString("Key", keyEdit.getText().toString()); |