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 ConvertKopeikiToRublesTest { | |
| public static void main(String[] args) { | |
| long kopecks = 1; | |
| double totalRubles = 0.0; | |
| for (int i = 0; i < 2_000_000_000; i++) { | |
| totalRubles += kopecks / 100.0; | |
| } |
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 | |
| if [ -z $1 ]; then | |
| echo "Cpplint - No input file!" | |
| exit | |
| fi | |
| DIR_PATH=$(pwd) | |
| if [ ! -f $DIR_PATH/cpplint.py ]; then | |
| cp ~/help_files/cpplint.py $DIR_PATH/ | |
| 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
| #!/usr/bin/env bash | |
| DIRECTORY=$"/Users/$(whoami)/goinfre/Homebrew" | |
| rm -rf $DIRECTORY | |
| echo $DIRECTORY | |
| git clone https://github.com/Homebrew/brew $DIRECTORY | |
| eval "$($DIRECTORY/bin/brew shellenv)" >> "/Users/$(whoami)/.zprofile" | |
| source "/Users/$(whoami)/.zprofile" | |
| echo 'export PATH="/opt/goinfre/$(whoami)/.brew/bin:$PATH"' >> ~/.zshrc |
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 | |
| //twitter screenshoter | |
| require_once('vendor/autoload.php'); | |
| use Facebook\WebDriver\Remote\DesiredCapabilities; | |
| use Facebook\WebDriver\Remote\RemoteWebDriver; | |
| use Facebook\WebDriver\Chrome\ChromeOptions; | |
| use Facebook\WebDriver\WebDriverBy; | |
| use Facebook\WebDriver\WebDriverSelect; |
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 | |
| //include 'hive_api_class.php'; | |
| $al2_hr=570; // hashrate autolykos2 570mh | |
| $al2_p=510; | |
| $eth_hr=151; | |
| $eth_p=380; | |
| $cost=0.12; | |
| $usd_price = json_decode(file_get_contents("https://www.cbr-xml-daily.ru/daily_json.js"), true)['Valute']['USD']['Value']; |