- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| #!/bin/bash | |
| hostname=$(hostname -s) | |
| cd ~/Library/Application\ Support/com.bohemiancoding.sketch3/ | |
| rm .license && touch .license && echo '{"meta":{"generated_at":"'$(date)'","sign":"==","device_name":"'$hostname "("$(id -un)')"},"payload":{"status":"ok","application":"sketch3","type":"license","udid":"c2d8c1dd037f919d57124de1037eeb22efad6bd1","expiration":"9999999999"}}' >> .license | |
| echo '127.0.0.1 backend.bohemiancoding.com' | sudo tee -a /etc/hosts |
| #!/bin/bash | |
| hostname=$(hostname -s) | |
| cd ~/Library/Application\ Support/com.bohemiancoding.sketch3/ | |
| rm .license && touch .license && echo '{"meta":{"generated_at":"'$(date)'","sign":"==","device_name":"'$hostname "("$(id -un)')"},"payload":{"status":"ok","application":"sketch3","type":"license","udid":"c2d8c1dd037f919d57124de1037eeb22efad6bd1","expiration":"9999999999"}}' >> .license | |
| echo '127.0.0.1 backend.bohemiancoding.com' | sudo tee -a /etc/hosts |
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers | |
| Africa/Asmara | |
| Africa/Asmera | |
| Africa/Bamako | |
| Africa/Bangui | |
| Africa/Banjul | |
| Africa/Bissau |
Pre-reqs:
brew install boost-python --with-python3 --without-python| cd /tmp | |
| pwd | |
| #Download Android SDK from Google and unzip it | |
| wget http://dl.google.com/android/android-sdk_r24.1.2-linux.tgz | |
| tar zxvf android-sdk_r24.1.2-linux.tgz | |
| rm android-sdk_r24.1.2-linux.tgz | |
| #Set extracted SDK location to $PATH so we can use commands | |
| export ANDROID_HOME="/tmp/android-sdk-linux" | |
| export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" |
| LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); | |
| binding = CustomViewGroupBinding.inflate(inflater, this, true); |
| public class Student extends RealmObject { | |
| @PrimaryKey | |
| private int studentId; | |
| private String firstName; | |
| private String lastName; | |
| private int age; | |
| private String gender; | |
| private String city; |
| public class MainActivity extends AppCompatActivity { | |
| private ActivityMainBinding binding; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| binding = DataBindingUtil.setContentView(this, R.layout.activity_main); | |
| UserModel user = new UserModel(); |