Skip to content

Instantly share code, notes, and snippets.

View vit1-irk's full-sized avatar

Viktor (vit01) vit1-irk

  • ISTP SB RAS
  • Russia, Irkutsk
View GitHub Profile
@vit1-irk
vit1-irk / searching_vso_second.ipynb
Created January 29, 2020 05:56
Failure to download MDI data from VSO
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vit1-irk
vit1-irk / searching_jsoc.ipynb
Created January 27, 2020 17:37
Trouble when downloading data from JSOC
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vit1-irk
vit1-irk / searching_vso.ipynb
Last active January 27, 2020 16:53
Trying to download SOHO MDI magnetic data from VSO using Sunpy's fido
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vit1-irk
vit1-irk / wavefunc-kate.c
Created November 23, 2019 02:52
Not fully working?
#include <complex.h>
#include <math.h>
#include <stdio.h>
int main()
{
double a,m,u0,e,h,x,hh;
complex double c1,c2,b,d,g, w,k;
FILE *f;
h=5;
hh=0.001;
@vit1-irk
vit1-irk / wavefunc-my.c
Created November 23, 2019 02:10
Simple wavefunction example with potential wall
#include <stdio.h>
#include <math.h>
#include <complex.h>
const double m = 1;
const double h = 1;
const double U = 1.5;
complex double A(complex double E, double a) {
complex double SE = csqrt(E);
#!/usr/bin/env python3
from py_tdlib import Client, Pointer, Auth
from py_tdlib.constructors import (
getMe, viewMessages, getChat, getChats
)
full_ignore = [] # integer ids of groups and chats you want to fully mark as read
stop_keywords = ["programming", "linux"] # never mark chat as read, if there are such keywords in it
stop_keywords = [word.lower() for word in stop_keywords]
[ 6462.541373] RTW: EEPROM ID=0x8129
[ 6462.541379] RTW: VID = 0x2357, PID = 0x0109
[ 6462.541385] RTW: Customer ID: 0x00, SubCustomer ID: 0xCD
[ 6462.541397] RTW: Hal_ReadPowerSavingMode8192E...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(1)
[ 6462.541403] RTW: ### PS params=> power_mgnt(0),usbss_enable(0) ###
[ 6462.541425] RTW: EEPROMRegulatory = 0x1
[ 6462.541429] RTW: Board Type: Dongle or WIFI only Module
[ 6462.541436] RTW: Hal_EfuseParseBTCoexistInfo8192E: Disable BT-coex, wifi ant_num=2
[ 6462.541445] RTW: hal_com_config_channel_plan chplan:0x21
[ 6462.541450] RTW: crystal_cap: 0x1f
@vit1-irk
vit1-irk / gist:d5ab3bb701fea26c28e4944e0411b39f
Created April 6, 2018 15:30
Make VK great again (userstyle) - оригинальная тема оформления для ВК. Убирает лайки, предложки, делает более лёгкое оформление, некликабельные ссылки на личные страницы и многое другое. Долой социальную лабуду, даёшь только полезный функционал!
.im-chat-input--attach {
margin-right: -38px;
}
#l_pr, #l_nwsf, #friends_possible_block, #ui_rmenu_recent, #ui_rmenu_find,
#ui_rmenu_lists, #submit_post_box, #feed_filters, #ui_rmenu_recommended,
#ui_rmenu_payments, .top_profile_img, .top_home_logo, .im-send-btn_audio, .emoji_smile_wrap,
#invite_button, #narrow_column .ui_rmenu_sep, .ui_calendar_icon,
#friends_search_wrap, #ui_rmenu_category0, #ui_rmenu_events, #groups_filters_wrap,
.nim-dialog--photo
@vit1-irk
vit1-irk / termux-sbcl-fail.txt
Created July 6, 2016 09:40
Build SBCL on Termux (fail)
Original: https://ii-net.tk/ii/ii-web.php?msgid=2rhsPM3w7R99RA44bi7V
// translation of my "progress"
Attempt to build SBCL on Termux device. Now this crashes at "make-genesis-2.sh" part because of "double defun" error.
====
# Open Termux
# Emacs is required for etags, Clang - for build, GCC - for nm and alternative build.
@vit1-irk
vit1-irk / termux-sbcl-binary.txt
Created July 6, 2016 09:37
Binary SBCL on Android (and Termux too)
Original: http://ii-net.tk/ii/ii-web.php?msgid=dv3z3xUssnrCkrxJSXY3
Quick installation of SBCL on Termux and some other Android systems
Does not require root access on your phone (only on PC)
Part 1 (desktop system)
====
# You can find these packages easily for your own distribution
sudo pacman -S qemu-static qemu-arch-extra-static binfmt-qemu-static