sudo apt-get install python3-pip
sudo pip3 install virtualenv
{%- set ns = namespace(uuid = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx') %} | |
{%- set ns.new_uuid = '' %} | |
{%- for x in ns.uuid %} | |
{%- set ns.new_uuid = [ns.new_uuid,(x | replace('x', [0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f'] | random ))] | join %} | |
{%- endfor %} | |
{{ ns.new_uuid }} |
AlertDialog alertDialog = new AlertDialog.Builder(this) | |
.setTitle("Title") | |
.setMessage("Are you sure?") | |
.create(); | |
alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); | |
alertDialog.show(); | |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> |
void main() { | |
final VALUES = { | |
'I': 1, | |
'V': 5, | |
'X': 10, | |
'L': 50, | |
'C': 100, | |
'D': 500, | |
'M': 1000 | |
}; |
# truncate the table and reset the index | |
truncate table <table_name> restart identity |
/* | |
** | |
** Copyright 2012, The Android Open Source Project | |
** | |
** Licensed under the Apache License, Version 2.0 (the "License"); | |
** you may not use this file except in compliance with the License. | |
** You may obtain a copy of the License at | |
** | |
** http://www.apache.org/licenses/LICENSE-2.0 | |
** |
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed. | |
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n |
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed. | |
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n |
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed. | |
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n |
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed. | |
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n |