Skip to content

Instantly share code, notes, and snippets.

tftp> put openwrt-brcm-2.4-squashfs.trx
sent WRQ <file=openwrt-brcm-2.4-squashfs.trx, mode=octet>
received ACK <block=0>
sent DATA <block=1, 512 bytes>
received ERROR <code=4, msg=code pattern incorrect>
Error code 1024: code pattern incorrect
tftp> put openwrt-brcm-2.4-squashfs.trx
sent WRQ <file=openwrt-brcm-2.4-squashfs.trx, mode=octet>
sent WRQ <file=openwrt-brcm-2.4-squashfs.trx, mode=octet>
sent WRQ <file=openwrt-brcm-2.4-squashfs.trx, mode=octet>
Request timeout for icmp_seq 94
Request timeout for icmp_seq 95
Request timeout for icmp_seq 96
64 bytes from 192.168.1.1: icmp_seq=82 ttl=100 time=1541.058 ms
64 bytes from 192.168.1.1: icmp_seq=83 ttl=100 time=1438.674 ms
64 bytes from 192.168.1.1: icmp_seq=98 ttl=100 time=0.743 ms
64 bytes from 192.168.1.1: icmp_seq=99 ttl=100 time=0.740 ms
64 bytes from 192.168.1.1: icmp_seq=100 ttl=100 time=0.761 ms
64 bytes from 192.168.1.1: icmp_seq=101 ttl=100 time=0.664 ms
64 bytes from 192.168.1.1: icmp_seq=102 ttl=100 time=0.752 ms
from kivy.config import Config
Config.set('kivy', 'log_level', 'debug')
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.image import Image
from kivy.properties import ObjectProperty
<MyActionButton@Button+ActionItem>:
size_hint: 1.0, None
height: self.texture_size[ 1 ]
width: self.texture_size[ 0 ] + 40
minimum_width: self.texture_size[ 0 ] + 40
background_normal: 'atlas://data/images/defaulttheme/action_bar'
background_down: 'atlas://data/images/defaulttheme/action_item_down'
halign: "center"
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1
900 64 bit (AMD64)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif
(img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [OSC ] using <thread> for socket
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
import math
import numpy as np
import scipy, scipy.interpolate
radians = math.pi / 180.0
# Depth, Inclination, Direction
survey_data = [ [1.92, -89.098, 312.804],
[3.0, -89.148, 317.651],
[6.0, -89.259, 325.05],
@onslauth
onslauth / main.py
Last active February 27, 2018 09:39
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.popup import Popup
from kivy.uix.label import Label
from kivy.uix.behaviors import DragBehavior
class DragLabel( DragBehavior, Label ):
pass
0, -75.1, 55.1
3, -75.0, 55.2
6, -75.1, 55.3
9, -75.1, 55.0
12, -75.0, 55.1
15, -75.1, 55.1
18, -75.1, 55.2
21, -75.0, 55.3
24, -75.1, 55.0
27, -75.1, 55.1
@onslauth
onslauth / main.py
Last active November 23, 2017 19:04
from kivy.config import Config
Config.set('kivy', 'log_level', 'debug')
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
from kivy.uix.boxlayout import BoxLayout
from object_renderer import ObjectRenderer
kv = """
https://imgur.com/a/1hBQr