Skip to content

Instantly share code, notes, and snippets.

View runo280's full-sized avatar
🤨

runo280 runo280

🤨
View GitHub Profile
@runo280
runo280 / NewAppWidget.kt
Created April 20, 2021 04:04
widget update
class NewAppWidget : AppWidgetProvider() {
override fun onUpdate(
context: Context,
appWidgetManager: AppWidgetManager,
appWidgetIds: IntArray
) {
// There may be multiple widgets active, so update all of them
for (appWidgetId in appWidgetIds) {
updateAppWidget(context, appWidgetManager, appWidgetId)
}
@runo280
runo280 / java1.java
Created August 20, 2020 15:48
c@ster
package io.github.runo280;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.net.URL;
@runo280
runo280 / job.txt
Last active August 26, 2020 05:39
https://t.me/asan_job_iran
https://t.me/doorijob
https://t.me/expertonline
https://t.me/favakar
https://t.me/favakargroupp
https://t.me/freelancer_job
https://t.me/group_estekhdam
https://t.me/hr_startup
https://t.me/itjobschannel
https://t.me/job_stuepa
#!/usr/bin/env python3
# coding=utf8
import time
import os
import sys
from pyvirtualdisplay import Display
from selenium import webdriver
reload(sys)
sys.setdefaultencoding('utf8')
@runo280
runo280 / main.go
Created March 27, 2020 09:25
photo rename
package main
import (
"fmt"
"log"
"os"
"path/filepath"
"strings"
"time"
@runo280
runo280 / tg.go
Last active May 21, 2020 00:02
Telegram
package main
import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
)
//go build -ldflags -w
package com.jwhh.notekeeper
import android.content.Context
import android.content.SharedPreferences
import android.preference.PreferenceManager
import android.text.Editable
object PreferenceHelper{
@runo280
runo280 / gitir_dl.sh
Last active September 6, 2022 03:48
Simply download courses from git.ir
#!/bin/env bash
# Author: https://github.com/runo280
# How to use: ./gitit_dl.sh https://git.ir/your_course_name/
# Valid pattern for url: https://git.ir/your_course_name/
# Needed packages: aria2, wget, sed, cut, grep, rev
@runo280
runo280 / 00readme.md
Last active September 29, 2020 11:36
Download script for [email protected] free courses

How to use

1- Install requirements

This command is for Ubuntu based distros

sudo apt install aria2 youtube-dl

2- Make [course_name].sh file excutable:

chmod +x [course_name].sh