mimeapps.list içine [Added Associations] altında bir satıra
aşağıdaki satırı ekle
x-scheme-handler/phpstorm=phpstorm-php.desktop
phpstorm-php.desktop içeriği
[Desktop Entry]
Type=Application
Name=PHPStorm IDE
def distance(lt1,ln1, lt2,ln2, in_meters = True): | |
""" | |
distance between two coordinates in meters | |
or in | |
""" | |
R = 6371000 # earth radius | |
theta1 = lt1 * PI / 180 | |
theta2 = lt2 * PI / 180 | |
delta_theta = (lt2 -lt1) * PI / 180 | |
delta_fi = (ln2 - ln1) * PI / 180 |
mimeapps.list içine [Added Associations] altında bir satıra
aşağıdaki satırı ekle
x-scheme-handler/phpstorm=phpstorm-php.desktop
phpstorm-php.desktop içeriği
[Desktop Entry]
Type=Application
Name=PHPStorm IDE
#!/bin/bash | |
# Install dependencies only for Docker. | |
[[ ! -e /.dockerinit ]] && exit 0 | |
set -xe | |
# Update packages and install composer and PHP dependencies. | |
apt-get update -yqq | |
apt-get install git libcurl4-gnutls-dev libicu-dev libmcrypt-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libpq-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev phpunit -yqq |
console.log("---> Running"); | |
const curl = require("curl"); | |
const jsdom = require("jsdom"); | |
const url = "http://www.imdb.com/list/ls004489992/"; | |
curl.get(url, null, (err,resp,body)=>{ | |
if(resp.statusCode == 200){ | |
parseData(body); | |
} |
xstat() { | |
for target in "${@}"; do | |
inode=$(ls -di "${target}" | cut -d ' ' -f 1) | |
fs=$(df "${target}" | tail -1 | awk '{print $1}') | |
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null | | |
grep -oP 'crtime.*--\s*\K.*') | |
printf "%s\t%s\n" "${crtime}" "${target}" | |
done | |
} |
<?php | |
require_once __DIR__.'/V8JsNodeModuleLoader_FileAccessInterface.php'; | |
require_once __DIR__.'/V8JsNodeModuleLoader_NormalisePath.php'; | |
/** | |
* Simple Node.js module loader for use with V8Js PHP extension | |
* | |
* This class understands Node.js' node_modules/ directory structure | |
* and can require modules/files from there. | |
* |
# gcc -Wall -o match match.c && ./match | |
# | |
#include <stdio.h> | |
#include <string.h> | |
#include <regex.h> | |
/** | |
* Calculate the center/average of multiple GeoLocation coordinates | |
* Expects an array of objects with .latitude and .longitude properties | |
* | |
* @url http://stackoverflow.com/a/14231286/538646 | |
*/ | |
function averageGeolocation(coords) { | |
if (coords.length === 1) { | |
return coords[0]; | |
} |
# -*- coding: utf-8 -*- | |
import requests | |
from HTMLParser import HTMLParser | |
import re | |
class PageNumParser(HTMLParser): | |
def handle_data(self, data): | |
if "sayfanın" in data: | |
getContent(int(re.search(r'\d+', data).group())) | |
class wordParser(HTMLParser): |
#!/usr/bin/env bash | |
########################################################################################################### | |
# Bash Script of this Documentation : | |
# https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bullseye%20Root%20on%20ZFS.html#debian-bullseye-root-on-zfs | |
# | |
# Copyright © 2022 - installer.sh | |
# Yasin Karabulak | |
# info@yasinkarabulak.com | |
# https://github.com/unique1984 | |
# |