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
| FROM gradle:4.10.0-jdk8 | |
| USER root | |
| ENV SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip" \ | |
| ANDROID_HOME="/usr/local/android-sdk" \ | |
| ANDROID_VERSION=25 \ | |
| ANDROID_BUILD_TOOLS_VERSION=27.0.3 \ | |
| ANDROID_ABI=armeabi-v7a \ | |
| AVD_NAME=Nexus_5X_API_28 |
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
| class Node: | |
| # ... | |
| def __hash__(self): | |
| return id(self) | |
| my_node = Node() | |
| my_hash = {my_node: "It's there!"} | |
| print(my_hash[my_node]) |
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
| <div class="card"></div> | |
| <form action="#"> | |
| <label>Credit Card Number </label> | |
| <input type="text" name="number" /> | |
| <label>Expiration</label> | |
| <input type="text" placeholder="MM/YY" name="expiry"/> |
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
| var request = require('request@2.27.0'); | |
| function get_rate(json_body){ | |
| // parse the response to get current price. | |
| return json_body.bpi.USD.rate; | |
| } | |
| module.exports = function (ctx, done) { | |
| var date = new Date(); | |
| var current_hour = date.getHours(); |
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 | |
| current_network="$(iwgetid -r)" | |
| if [[ -z $current_network ]]; then | |
| echo "Not connected to network :(" | |
| exit | |
| fi | |
| echo Your network is $current_network | |
| echo "$(sudo cat /etc/NetworkManager/system-connections/$current_network | grep ^psk= | sed "s/psk=/Password is: /")" |
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
| def reverse(self): | |
| if self.first == None or self.first.next == None: | |
| # list is empty or has just one element, | |
| # there's nothing to do | |
| return | |
| previous = None | |
| current = self.first | |
| next = current.next |
NewerOlder