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
;Author:quickgrid | |
;Site: http://quickgrid.blogspot.com | |
;Code: Even odd check using loop in 8086 assembly explained code | |
.model small | |
.stack 100h | |
.data | |
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
;Author:quickgrid | |
;Site: http://quickgrid.blogspot.com | |
;Code: 8086 assembly diamond print dual loop explained code | |
org 100h | |
.stack 100h | |
.data | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
android:orientation="vertical" |
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
+(country code)-(area code)-(fax number) | |
+1-212-9876543 | |
+44-208-1234567 | |
+443-208434-12345674 | |
+233-11-114567 | |
+190-209-1234567 | |
+1-212-9876543 | |
+44-208-1234567 | |
+443-208434-12345674 | |
+233-11-114567 |
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
#!/bin/bash | |
i=1 | |
while read line | |
do | |
var=$(( $i % 2 )) | |
if [ $var -eq 0 ]; then | |
echo "$line" | |
fi |
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
#!/bin/bash | |
head -10 "EmailAddress.txt" | tail -6 | grep --color -E -w "^[A-Za-z0-9._]+@[A-Za-z0-9.]+\.[A-Za-z]{2,6}" |
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
#!/bin/bash | |
grep --color -E -w "^[A-Za-z0-9._]+@[A-Za-z0-9.]+\.[A-Za-z]{2,6}" "EmailAddress.txt" |
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
#!/bin/bash | |
c=0 | |
grep -E -w "8:[0-5][0-9]|9:[0-5][0-9]|10:00?" log.txt | while read ip time city ; do | |
echo "Logged in at $time with ip $ip and city $city " | |
c=$(( $c + 1 )) | |
echo "Found so far: $c" |
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
192.1.4.09 10:30 Arsenal | |
110.13.5.67 5:12 Chelsea | |
192.1.45.67 23:21 Man United | |
199.13.8.23 8:33 Man city | |
172.11.22.2 18:45 Arsenal | |
133.13.8.23 10:00 Moon colony | |
112.11.22.2 8:00 Mars colony | |
103.13.8.23 9:00 Jupiter colony | |
12.11.22.2 8:59 Europa colony |
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
#!/bin/bash | |
removeExecutablePermission(){ | |
if [ -f $1 ]; then | |
#echo "regular file" | |
if [ -x $1 ]; then | |
#echo "remove permission" |