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
import 'dart:typed_data'; | |
import 'package:ndef/ndef.dart' as ndef; | |
class WifiNdefRecord { | |
static ndef.NDEFRecord createWifiRecord(String ssid, String password) { | |
Uint8List ssidByte = Uint8List.fromList(ssid.codeUnits); | |
Uint8List passwordByte = Uint8List.fromList(password.codeUnits); | |
Uint8List ssidLength = Uint8List.fromList([(ssid.length >> 8) & 0xFF, ssid.length & 0xFF]); | |
Uint8List passwordLength = Uint8List.fromList([(password.length >> 8) & 0xFF, password.length & 0xFF]); |
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
<html> | |
<head> | |
<title>Test</title> | |
<style> | |
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Koulen&family=Lato&family=Nunito&family=Playfair+Display:ital@1&family=Prata&family=Raleway:ital,wght@1,100&family=Roboto&family=Roboto+Condensed&family=Teko&display=swap'); | |
.btn { | |
font-family: Roboto, sans-serif; | |
font-weight: 600; |
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
const Typography = (str) => { | |
const quotes = { | |
singleQuotes: ["\u{201A}", "\u{2018}"], | |
doubleQuotes: ["\u{201E}", "\u{201C}"], | |
}; | |
const pattern = 'A-Za-z\\x\{C0\}-\\x\{2FF\}\\x\{370\}-\\x\{1EFF\}'; | |
var patterns = [{ |
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
configure: creating cache /Users/ladislavjanecek/.phpbrew/cache/config.cache | |
./configure: line 3188: /Users/ladislavjanecek/.phpbrew/cache/config.cache: No such file or directory | |
checking for grep that handles long lines and -e... /usr/bin/grep | |
checking for egrep... /usr/bin/grep -E | |
checking for a sed that does not truncate output... /usr/bin/sed | |
checking build system type... x86_64-apple-darwin19.4.0 | |
checking host system type... x86_64-apple-darwin19.4.0 | |
checking target system type... x86_64-apple-darwin19.4.0 | |
checking for cc... cc | |
checking whether the C compiler works... yes |
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
add_action('phpmailer_init', function( PHPMailer $phpmailer ){ | |
$phpmailer->isSMTP(); | |
$phpmailer->Host = 'smtp.mandrillapp.com'; | |
$phpmailer->SMTPAuth = true; | |
$phpmailer->Port = 587; | |
$phpmailer->Username = 'USERNAME'; | |
$phpmailer->Password = 'APIKEY'; | |
$phpmailer->SMTPSecure = 'tls'; | |
$phpmailer->addCustomHeader('X-MC-Subaccount', 'SUBACCOUNT'); | |
$phpmailer->setFrom('default@email.com', 'Default Title'); |
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
$file = __DIR__ . '/../data/twitter.json'; | |
$tweets = array(); | |
if(!file_exists($file) || (file_exists($file) && time()-filemtime($file) >= 3600)){ | |
try { | |
$data = self::get_twitter_data(); | |
} catch (Exception $e) { | |
$data = array(); | |
} |
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
#ctverec{ | |
width: 200px; | |
height: 200px; | |
background-color: pink; | |
position: absolute; | |
top: 100px; | |
left: 100px; | |
border-radius: 100%; | |
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
var sviti = 0; | |
function rozsvit() { | |
var zarovka = document.getElementById('zarovka'); | |
if (sviti == 0) { | |
zarovka.src = "zarovka_sviti.jpg"; | |
sviti = 1; | |
} else { |
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 killall httpd | |
sudo apachectl -k restart | |
sudo apachectl -k stop | |
sudo apachectl stop |
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
ffmpeg -loop 1 -i img.jpg -t 30 output.mp4 |
NewerOlder