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
COPIED FROM https://build.opensuse.org/package/view_file/games/stockfish/stockfish-interface.txt?expand=1 | |
Description of the universal chess interface (UCI) April 2006 | |
================================================================= | |
* The specification is independent of the operating system. For Windows, | |
the engine is a normal exe file, either a console or "real" windows application. | |
* all communication is done via standard input and output with text commands, |
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
var url = "https://www.ilna.ir/fa/tiny/news-724227"; | |
var client = new HttpClient(); | |
var result = client.GetAsync(url).Result; | |
Console.WriteLine(result.StatusCode); |
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 keras | |
import tensorflow as tf | |
import keras.backend as K | |
import numpy as np | |
from tensorflow.contrib.layers import * | |
# What we want to do: aX + b = Y | |
''' This one is using without using feed | |
X = np.random.uniform(-100., 100., 1000) |
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
esversion="5.5.2" | |
kibversion="5.5.2" | |
username=<specify> | |
password=<specify> | |
nodecount=4 #change | |
oldesv=$(dpkg -s elasticsearch 2>/dev/null | grep Version | cut -f2 -d' ') | |
oldkibv=$(dpkg -s kibana 2>/dev/null | grep Version | cut -f2 -d' ') |
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
{ | |
"value": [ | |
{ | |
"id": "/subscriptions/c3dfd792-49a4-4b06-80fc-6fc6d06c4742/locations/eastasia", | |
"name": "eastasia", | |
"displayName": "East Asia", | |
"longitude": "114.188", | |
"latitude": "22.267" | |
}, | |
{ |
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
from bs4 import BeautifulSoup | |
import codecs | |
import requests | |
def get_film_names(doc): | |
res = [] | |
bs = BeautifulSoup(doc, 'html.parser') | |
for a in bs.select('ul li .s-item-container h2'): | |
name = a.text.replace('\t', ' ') | |
yearTags = a.parent.parent.select('> span.a-color-secondary') |
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
val client = new org.apache.http.impl.client.DefaultHttpClient() | |
val request = new org.apache.http.client.methods.HttpGet("http://ipinfo.io") | |
request.addHeader("accept", "application/json") | |
val response = client.execute(request) | |
val handler = new org.apache.http.impl.client.BasicResponseHandler() | |
println(handler.handleResponse(response).trim.toString) |
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
MAXFILE=65536 | |
CURRENT_MAXFILE=$(ulimit -n) | |
function update_sysctl(){ | |
UPDT="fs.file-max = $MAXFILE" | |
if ! grep "$UPDT" /etc/sysctl.conf; then | |
echo "$UPDT" >> /etc/sysctl.conf | |
fi | |
} |
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 Program | |
{ | |
static void Main(string[] args) | |
{ | |
LinqVsArraySort(); | |
} | |
static void LinqVsArraySort() | |
{ |
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
from ftplib import FTP | |
import sys | |
import os | |
from azure.storage.blob import BlobService | |
import time | |
_tmp_list = [] | |
def _accept_file(x): | |
_tmp_list.append(x.split(' ')[-1]) |
NewerOlder