This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| #!/usr/bin/env bash | |
| # 配置参考: | |
| # https://github.com/shadowsocks/shadowsocks-libev/blob/master/docker/alpine/README.md | |
| SERVER_ADDR="your_server_ip" | |
| SERVER_PORT="your_server_port" | |
| PASSWORD="your_password" | |
| METHOD="aes-256-cfb" | |
| TIMEOUT=300 |
| @echo off | |
| title Microsoft Office 2019 versions are supported!&cls&echo | |
| ============================================================================&echo | |
| #Project: Activating Microsoft software products for FREE without software&echo | |
| ============================================================================&echo.&echo | |
| #Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist | |
| "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist | |
| "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b | |
| ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b | |
| ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo |
| import os | |
| import asyncio | |
| import aiohttp # pip install aiohttp | |
| import aiofile # pip install aiofile | |
| REPORTS_FOLDER = "reports" | |
| FILES_PATH = os.path.join(REPORTS_FOLDER, "files") | |
| def download_files_from_report(urls): |
| # Read more about setting it up | |
| # https://medium.com/@ljmocic/make-telegram-bot-for-notifying-about-new-rss-feed-items-4cfbcc37f4fd | |
| from datetime import timedelta, datetime | |
| from dateutil import parser | |
| from pprint import pprint | |
| from time import sleep | |
| import requests | |
| import feedparser |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| #include <windows.h> | |
| #include <GLFW/glfw3.h> | |
| #include <iostream> | |
| // change this to int main() to allow the console | |
| int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, char*, int nShowCmd) | |
| { | |
| GLFWwindow* window; | |
| int windowSizeW = 640, windowSizeH = 480; | |
| // initialize the library |
| #include <stdio.h> | |
| #define _USE_MATH_DEFINES | |
| #include <math.h> | |
| #include <windows.h> | |
| // width and height of screen | |
| #define ww 100 | |
| #define wh 50 | |
| void clr(CHAR_INFO* d) |
| # -*- coding: utf-8 -*- | |
| """Module to generate ascii charts. | |
| This module provides a single function ``plot`` that can be used to generate an | |
| ascii chart from a series of numbers. The chart can be configured via several | |
| options to tune the output. | |
| Modified from for modern python and to use ``rich``: | |
| https://github.com/kroitor/asciichart/blob/master/asciichartpy/__init__.py | |
| """ |
| """ | |
| t.me/danokhlopkov | |
| x.com/danokhlopkov | |
| github.com/danokhlopkov | |
| Strategy: | |
| 1. get chats / groups you're in | |
| 2. iterate over participants and find ones with stories | |
| 3. watch them |
| // ==UserScript== | |
| // @name Medium Paywall Bypass | |
| // @namespace Violentmonkey Scripts | |
| // @run-at document-start | |
| // @match *://*.medium.com/* | |
| // @match *://medium.com/* | |
| // @match *://*/* | |
| // @grant none | |
| // @version 3.0 | |
| // @inject-into content |