// Instead, select the first instance of .box
document.querySelector(".box");
// …or select all instances of .box
document.querySelectorAll(".box");
from extended_profile.models import UserSession | |
class Migration(migrations.Migration): | |
dependencies = [ | |
('extended_profile', '0001_auto_20190829_0714'), | |
] | |
def gen_uuid(apps, schema_editor): |
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
$ uname -r
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
#!/usr/bin/python | |
""" | |
LCD-i2c.py | |
Python module to write to simple character screens with an i2c backpack. | |
This program uses (modified) parts of lcd_i2c.py by Matt Hawkins, licensed under the | |
GNU GPL v3 or at your option any later version. | |
Copyright 2016 Tijndagamer | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or |
#!/usr/bin/python | |
from evdev import InputDevice, list_devices | |
from mpd import MPDClient | |
import socket | |
import os | |
def mpd_func(func_name): | |
try: | |
c = MPDClient() | |
c.connect("localhost", 6600) |
#!/usr/bin/env python | |
import socket | |
import sys | |
import json | |
import time | |
loop_seconds = 90 | |
miner_ip = '192.168.1.102' |