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
| package com.sam016.vsflatomation.service.ble; | |
| import java.util.HashMap; | |
| import java.util.UUID; | |
| public class AllGattCharacteristics { | |
| private static HashMap<String, String> attributes = new HashMap(); | |
| static { | |
| attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name"); |
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
| <?php | |
| /** | |
| * | |
| * Gmail attachment extractor. | |
| * | |
| * Downloads attachments from Gmail and saves it to a file. | |
| * Uses PHP IMAP extension, so make sure it is enabled in your php.ini, | |
| * extension=php_imap.dll |
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
| # http://stackoverflow.com/questions/1388025/how-to-get-id-of-the-last-updated-row-in-mysql | |
| # single row update | |
| SET @update_id := 0; | |
| UPDATE some_table SET column_name = 'value', id = (SELECT @update_id := id) | |
| WHERE some_other_column = 'blah' LIMIT 1; | |
| SELECT @update_id; | |
| # Multiple rows updated | |
| SET @uids := null; |