This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ir.taheri | |
import play.api.mvc._ | |
import scala.concurrent._ | |
import ExecutionContext.Implicits.global | |
class Controller01 { | |
def method01 = Action.async { | |
Future { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.Executors | |
import scala.concurrent._ | |
import scala.concurrent.duration._ | |
import ExecutionContext.Implicits.global | |
object FutureExperiment extends App { | |
val cores = Runtime.getRuntime.availableProcessors | |
val start = System.currentTimeMillis() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File | |
import java.nio.file.attribute.{PosixFilePermission, PosixFileAttributes} | |
import java.nio.file.{Files, Path} | |
import java.time.format.DateTimeFormatter | |
import java.time.{LocalDateTime, ZoneId} | |
/* | |
A solution for assignment #1 | |
Nima Taheri ([email protected]) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gnome rtl fix | |
div.bglrtl { | |
padding-right: 30px; | |
padding-left: 30px; | |
} | |
html { | |
background: #2B2B2B; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package engine; | |
import java.awt.geom.Path2D; | |
import java.awt.geom.Point2D; | |
import java.util.LinkedList; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* PathParser adopted from react-native-svg renderer written for android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"time" | |
"regexp" | |
"bufio" | |
"strconv" | |
"fmt" | |
"os" | |
"errors" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import puppeteer from 'puppeteer' | |
import fs from "fs"; | |
import util from "util"; | |
let url = 'https://lotusplay.com/episode/533/1574ce'; | |
let domain = 'lotusplay.com'; | |
let cookieDumpFile = '/home/nima/cookies.txt'; | |
let browserAgent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0'; | |
let DEBUG = false; | |
let USE_COOKIE_AND_AGENT = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Warning: INCOMPLETE, GTK has problems ! | |
brew install intltool pkg-config gtk+3 libnotify gstreamer openssl | |
# install gnu xgettext | |
export GETTEXT_VERSION=$(curl https://ftp.gnu.org/pub/gnu/gettext/ | grep -oP 'gettext-[0-9.]+(?=.tar.gz)' | sort | tail -n 1) | |
wget "http://ftp.gnu.org/pub/gnu/gettext/$GETTEXT_VERSION.tar.gz" | |
tar -zxvf "$GETTEXT_VERSION.tar.gz" | |
cd "$GETTEXT_VERSION" | |
./configure | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;------------------------------------------------------------------------------- | |
; Auto-Reload AutoHotkey when .ahk file is saved | |
; http://prxbx.com/forums/showthread.php?tid=1181 | |
; Modified 2009-12-09 11:32:17 by Luke Scammell - luke {at} scammell [dot] co (.) uk | |
; Modified to match any window with .ahk in the title, meaning it will update other scripts as well and from other programs like Notepad++ :) | |
~^s:: | |
SetTitleMatchMode, 2 | |
FileGetTime ScriptStartModTime, %A_ScriptFullPath% | |
#If WinActive(A_ScriptName " ahk_exe Code.exe") ; change Code.exe with your ahk editor executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from re import sub as rereplace, compile as recompile | |
from sys import argv | |
from urllib.parse import unquote | |
from subprocess import run | |
# prerequisites: | |
# make sure the editor you assigned to massren is assessible with default PATH (uninitialized .zshrc) | |
# constants |
OlderNewer