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
#!/bin/bash | |
# Discussion, issues and change requests at: | |
# https://github.com/nodesource/distributions | |
# | |
# Script to install the NodeSource Node.js 20.x repo onto a | |
# Debian or Ubuntu system. | |
# | |
# Run as root or insert `sudo -E` before `bash`: | |
# |
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
pprint() { | |
cred='\033[0;31m' | |
cgreen='\033[0;32m' | |
cyellow='\033[0;33m' | |
cblue='\033[0;34m' | |
cpurple='\033[0;35m' | |
eval "export color='$cpurple'" | |
[ ! -z $2 ] && eval "export color=\"\$$2\"" | |
printf "$color $1" | |
} |
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 os | |
import subprocess | |
import sys | |
from pythonansi import colors | |
color = colors() | |
def update(): | |
# eğer "can be upgraded" yazısı varsa güncelleme yapılır. |
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
<?php | |
class Api | |
{ | |
/** API URL */ | |
public $api_url = 'https://medyamiz.com/api/v2'; | |
/** Your API key */ | |
public $api_key = ''; | |
/** Add order */ |
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
class Api { | |
constructor(apiKey) { | |
this.api_url = 'https://medyamiz.com/api/v2'; | |
this.api_key = apiKey; | |
} | |
// Sipariş ekle | |
async order(data) { | |
const post = { key: this.api_key, action: 'add', ...data }; | |
return await this.connect(post); |
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 requests | |
import json | |
class Api: | |
def __init__(self): | |
# API URL | |
self.api_url = 'https://medyamiz.com/api/v2' | |
# API Anahtarınız (Your API Key) | |
self.api_key = '' |