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
docker images --format "{{.Repository}}:{{.Tag}}" | grep :latest | xargs -L1 docker pull |
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 functools | |
import asyncio | |
from concurrent.futures import ThreadPoolExecutor | |
def to_async(func): | |
"""Turns a sync function to async function using event loop""" | |
@functools.wraps(func) | |
async def run(*args, loop=None, executor=None, **kwargs): | |
if loop is None: |
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 pandas as pd | |
import pandas.io.sql as sqlio | |
import psycopg2 | |
conn = psycopg2.connect("host='{}' port={} dbname='{}' user={} password={}".format(host, port, dbname, username, pwd)) | |
sql = "select count(*) from table;" | |
dat = sqlio.read_sql_query(sql, conn) | |
conn = None |
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
version: '2.3' | |
services: | |
autocompleter: | |
container_name: autocompleter | |
image: iedmrc/galois-autocompleter:latest-gpu | |
restart: always | |
expose: | |
- "3030" | |
runtime: nvidia | |
networks: |
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
version: "3" | |
services: | |
osrm: | |
container_name: osrm | |
image: osrm/osrm-backend | |
restart: always | |
ports: | |
- "5000:5000" | |
volumes: | |
- ./osrm:/data |
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
/** | |
* Saves post to database | |
* @param Request $request | |
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector | |
*/ | |
public function post(Request $request) | |
{ | |
//Models | |
$posts = new Post(); | |
$hashtags = new Hashtag(); |
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
https://en.wikipedia.org/wiki/C_(programming_language) | |
https://tr.wikipedia.org/wiki/UNIX | |
https://en.wikipedia.org/wiki/BCPL | |
https://www.levenez.com/unix/unix.png | |
https://en.wikipedia.org/wiki/X86_instruction_listings | |
https://en.wikipedia.org/wiki/List_of_instruction_sets | |
https://en.wikipedia.org/wiki/History_of_programming_languages | |
https://www.computerhope.com/issues/ch000984.htm | |
https://en.wikipedia.org/wiki/Timeline_of_programming_languages | |
https://en.wikipedia.org/wiki/Plankalkül |
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
/** | |
* Compile blade template string to (bare) php | |
* @param $value | |
* @param array $args | |
* @return string | |
* @throws \Exception | |
*/ | |
public static function bladeCompile($value, array $args = array()) | |
{ | |
$generated = \Blade::compileString($value); |
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
//$message herhangi bir string olmak uzere hashtagler, mentionlar,youtube linkleri ve normal linkler icin preg. | |
$parsedMessage = | |
preg_replace_callback_array( | |
[ | |
'/(?i)\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?«»“”‘’]))/' | |
=>function ($m) { | |
$matches=[]; | |
$match_bool=preg_match('/\s*[a-zA-Z\/\/:\.]*youtu(be.com\/watch\?v=|.be\/)([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i',$m[0],$matches); | |
if($match_bool) | |
{ |
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
#--coding:cp1254 | |
#kutuphaneler | |
from Tkinter import * | |
import tkMessageBox | |
import random | |
import tkFont | |
#global degiskenler | |
Aoyuncusu="" |
NewerOlder