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
| MariaDB [fun]> EXPLAIN SELECT * FROM users WHERE last_name = 'Harahap'; | |
| +------+-------------+-------+------+---------------+------+---------+------+------+-------------+ | |
| | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
| +------+-------------+-------+------+---------------+------+---------+------+------+-------------+ | |
| | 1 | SIMPLE | users | ALL | NULL | NULL | NULL | NULL | 10 | Using where | | |
| +------+-------------+-------+------+---------------+------+---------+------+------+-------------+ | |
| 1 row in set (0.00 sec) |
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
| MariaDB [fun]> SELECT * FROM users WHERE last_name = 'Harahap'; | |
| +----+------------+-----------+ | |
| | id | first_name | last_name | | |
| +----+------------+-----------+ | |
| | 1 | Batista | Harahap | | |
| | 2 | Rinto | Harahap | | |
| +----+------------+-----------+ | |
| 2 rows in set (0.00 sec) |
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
| MariaDB [fun]> EXPLAIN SELECT * FROM users; | |
| +------+-------------+-------+------+---------------+------+---------+------+------+-------+ | |
| | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
| +------+-------------+-------+------+---------------+------+---------+------+------+-------+ | |
| | 1 | SIMPLE | users | ALL | NULL | NULL | NULL | NULL | 10 | | | |
| +------+-------------+-------+------+---------------+------+---------+------+------+-------+ |
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
| MariaDB [fun]> SELECT * FROM users; | |
| +----+------------+------------+ | |
| | id | first_name | last_name | | |
| +----+------------+------------+ | |
| | 1 | Batista | Harahap | | |
| | 2 | Rinto | Harahap | | |
| | 3 | Michael | Jordan | | |
| | 4 | Chris | Martin | | |
| | 5 | Jordan | Sparks | | |
| | 6 | Daniel | Craig | |
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
| SELECT | |
| first_name, | |
| last_name | |
| FROM | |
| names |
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
| SELECT * FROM users |
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
| CREATE TABLE `names` ( | |
| `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
| `first_name` varchar(50) CHARACTER SET latin1 DEFAULT NULL, | |
| `last_name` varchar(50) CHARACTER SET latin1 DEFAULT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
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
| public class CameraPreview extends SurfaceView implements SurfaceHolder.Callback { | |
| private SurfaceHolder mHolder; | |
| private Camera mCamera; | |
| private Camera.Size previewSize; | |
| private int containerWidth, containerHeight; | |
| public CameraPreview(Context context, Camera camera, int containerWidth, int containerHeight) { | |
| super(context); |
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/sh | |
| SSID=`/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | grep ' SSID:' | cut -d ':' -f 2 | tr -d ' '` | |
| echo $SSID |
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
| import urllib2 | |
| domains = ['YOUR_DOMAIN1', 'YOUR_DOMAIN2'] | |
| token = 'YOUR_ACCESS_TOKEN' | |
| ip_check_url = 'http://icanhazip.com' | |
| def get_public_ip(): | |
| response = urllib2.urlopen(url=ip_check_url) |