This file contains 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 main | |
import ( | |
"fmt" | |
"math/big" | |
) | |
func FizzBuzz(n string) string { | |
var i, x, one, zero, fizz, buzz, result big.Int |
This file contains 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 easyDBCopy | |
import ( | |
easy "github.com/EasyDB-io/Golang/client" | |
) | |
type DB struct { | |
database string | |
token string | |
} |
This file contains 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
sudo sed -i 's/archive.ubuntu.com/mirror.yandex.ru/g' /etc/apt/sources.list |
This file contains 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 "./simple_html_dom.php"; | |
// Создаем дом | |
$html = file_get_html('https://bash.im'); | |
// Находим ссылки | |
foreach($html->find('a[class=quote__header_permalink]') as $a) { | |
// Находим ссылки и берем у них аттрибут "Href", он бывает относительный и поэтому... | |
$url = $a->href; | |
// ...я добавляю "https://bash.im" здесь, так как на этом сайте все ссылки - относительные. |
NewerOlder