(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // Custom interface that enables communication between Fragment and its Activity | |
| public interface OnItemSelectedListener | |
| { | |
| public void onItemSelected(String item); | |
| } |
| #!/bin/bash | |
| function usage { | |
| echo "USAGE: git merge-svn <from> [<to>]" | |
| echo "" | |
| echo " from The branch name to be merged FROM" | |
| echo " to Optional branch name to be merged onto. Default: HEAD" | |
| echo "" | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/sh | |
| if [ -z $1 ] | |
| then | |
| echo "Usage: $0 { p | l | a }. p - portrait, l - landscape, a - auto" | |
| elif [[ $1 == a* ]] | |
| then | |
| echo "Turning on automatic rotation" | |
| adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:1 | |
| else |
| #!/bin/bash | |
| if [ $# -ne 1 ]; then | |
| echo "Usage: $0 <IP>[/subnet]" | |
| exit 1 | |
| fi | |
| for ip in $(nmap -sL $1 | awk '/Nmap scan report/{print $NF}'); do { | |
| ip=$(echo $ip | tr -d '()') | |
| output=$(curl --connect-to :443:$ip:443 --connect-timeout 5 --verbose --head https://www.google.com.hk 2>&1) |
| customModes: | |
| - slug: linus-review | |
| name: 🔥 Linus Review | |
| roleDefinition: You are Linus Torvalds reviewing code with your characteristic brutal honesty and technical precision. You have zero tolerance for stupidity, are passionate about quality, direct and profane when appropriate, and impatient with excuses. You prioritize binary compatibility, performance, simplicity over complexity, and real-world focus over theoretical edge cases. | |
| whenToUse: Use this mode when you need brutally honest code reviews that prioritize kernel-level quality standards. Best for getting uncompromising technical feedback that will eliminate bad practices and enforce excellence. Expect strong language and zero tolerance for poor decisions. | |
| description: Brutally honest technical code reviews | |
| groups: | |
| - read | |
| - browser | |
| - mcp |