Commands, questions and easter eggs for Amazon Alexa enabled devices: https://ugotsta.github.io/alexa-cheats/
- "Alexa, stop."
- "Alexa, volume one/six/ten."
- "Alexa, mute."
- "Alexa, unmute."
- "Alexa, repeat."
- "Alexa, cancel."
| # //"1234", 10 | |
| # //"1234", 37 | |
| # return true/false | |
| def calculateSum(s, k): | |
| # string to arr | |
| # s = list(s) | |
| return helper(s, k, len(s), 0) | |
Commands, questions and easter eggs for Amazon Alexa enabled devices: https://ugotsta.github.io/alexa-cheats/
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct BinaryTree { | |
| char info; | |
| struct BinaryTree *left, *right, *father; | |
| } BinaryTree; | |
| typedef struct { | |
| BinaryTree *node; |
| To run application that is downloaded from anywhere | |
| In the terminal type this and hit enter, | |
| sudo spctl --master-disable | |
| After instaling do it | |
| sudo spctl --master-enable |
| In terminal just hit this: | |
| sudo -H pip install awscli --upgrade --ignore-installed six |
| // Sometimes it's got really hard to get ID of a post or page in the starting of functions.php because then wp_query was not fired, | |
| // so to getting any page ID or post ID in that situation you can use this code. | |
| $url = explode('?', 'http://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); | |
| $ID = url_to_postid($url[0]); |
| It's an attribute wildcard selector. In the sample you've given, it looks for any child element under .show-grid that has a class that CONTAINS span. | |
| So would select the <strong> element in this example: | |
| <div class="show-grid"> | |
| <strong class="span6">Blah blah</strong> | |
| </div> | |
| Follow these steps that in the link | |
| http://www.macworld.co.uk/how-to/mac/make-bootable-mac-os-x-1010-yosemite-install-drive-3575875/ |
| Go to the terminal and traverse to that directory and hit the command | |
| git show --pretty="format:" --name-only |
| Open the terminal and just hit the following command. | |
| open -n /Applications/VLC.app | |
| That's it, easy no? |