I hereby claim:
- I am alopatindev on github.
- I am alopatindev (https://keybase.io/alopatindev) on keybase.
- I have a public key whose fingerprint is 1C98 5509 A5F0 7B4D 4DF3 8BCA 44FB 438E DA18 3EF0
To claim this, I am signing this object:
| ##cvt 3440 1440 60 | |
| ##xrandr --newmode 3440x1440_60.00 419.50 3440 3696 4064 4688 1440 1443 1453 1493 -hsync +vsync | |
| #xrandr --addmode 3440x1440_60.00 HDMI1 | |
| #xrandr --output HDMI1 --mode 3440x1440_60.00 | |
| xrandr --output HDMI1 --auto | |
| #xrandr --output HDMI1 --primary | |
| ##lcdtest | |
| #arandr |
| #!/usr/bin/env python3 | |
| # adb-repull.py | |
| # | |
| # ADB pull emulation for machines with problematic USB ports/cables. | |
| # It continuously retries and resumes download when disconnection happens. | |
| # | |
| # Copyright (c) 2018 Alexander Lopatin | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python2 | |
| # https://www.youtube.com/watch?v=tIpKfDc295M | |
| # https://www.youtube.com/watch?v=umAeJ7LMCfU | |
| import numpy as np | |
| f = lambda x, y: x * x + 2.0 * y | |
| d_dx = lambda x, y: 2.0 * x | |
| d_dy = lambda x, y: 2.0 |
| #!/usr/bin/env python2 | |
| # https://www.youtube.com/watch?v=YEBfamv-_do | |
| from random import randrange | |
| public_prime = 67280421310721 # aka p | |
| public_base = 3 # aka g | |
| def generate_key(): |
| // https://www.youtube.com/watch?v=_aWzGGNrcic | |
| // https://www.youtube.com/watch?v=RD0nNK51Fp8 | |
| import scala.io.Source | |
| import scala.util.Random | |
| import java.io.{BufferedWriter, FileWriter} | |
| object Kmeans extends App { | |
| case class Point(val x: Double, val y: Double) { |
| # This file is auto-generated from the current state of the database. Instead | |
| # of editing this file, please use the migrations feature of Active Record to | |
| # incrementally modify your database, and then regenerate this schema definition. | |
| # | |
| # Note that this schema.rb definition is the authoritative source for your | |
| # database schema. If you need to create the application database on another | |
| # system, you should be using db:schema:load, not running all the migrations | |
| # from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
| # you'll amass, the slower it'll run and the greater likelihood for issues). | |
| # |
| let val = 'global 1' | |
| this.val = 'global 2' | |
| console.log('val = ' + val) | |
| class Foo { | |
| constructor() { | |
| this.val = 'property' | |
| } | |
| } |
| fix :: (a -> a) -> a | |
| fix = \f -> f $ fix f | |
| fib :: Int -> Int | |
| fib = \n -> fix (\f n -> if n <= 2 then 1 else f (n - 2) + f (n - 1)) n | |
| main = putStrLn $ show $ map fib [1..10] |
| set height 0 | |
| set pagination off | |
| set disassembly-flavor intel | |
| # Don't wrap line or the coloring regexp won't work. | |
| set width 0 | |
| # Create a named pipe to get outputs from gdb | |
| shell test -e /tmp/coloutPipe && rm /tmp/coloutPipe | |
| shell mkfifo /tmp/coloutPipe |