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
public interface IHttpMessageSerializer | |
{ | |
void Serialize(HttpResponseMessage response, Stream stream); | |
void Serialize(HttpRequestMessage request, Stream stream); | |
HttpResponseMessage DeserializeToResponse(Stream stream); | |
HttpRequestMessage DeserializeToRequest(Stream stream); | |
} | |
public class MessageContentHttpMessageSerializer : IHttpMessageSerializer |
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
using System; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using CacheCow.Client; | |
using CacheCow.Client.Headers; | |
namespace ConsoleApplication1 | |
{ | |
class Program |
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
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
{ | |
"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
public class BinaryMediaTypeFormatter : MediaTypeFormatter | |
{ | |
private static Type _supportedType = typeof (byte[]); | |
private bool _isAsync = false; | |
public BinaryMediaTypeFormatter() : this(false) | |
{ | |
} |
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
{"total":26,"movies":[{"id":"12897","title":"The Matrix","year":1999,"mpaa_rating":"R","runtime":136,"critics_consensus":"An ingenious combination of Hong Kong action, ground-breaking Hollywood FX, and an imaginative vision.","release_dates":{"theater":"1999-03-31","dvd":"1999-09-21"},"ratings":{"critics_rating":"Certified Fresh","critics_score":87,"audience_rating":"Upright","audience_score":81},"synopsis":"","posters":{"thumbnail":"http://content7.flixster.com/movie/16/90/52/1690525_mob.jpg","profile":"http://content7.flixster.com/movie/16/90/52/1690525_pro.jpg","detailed":"http://content7.flixster.com/movie/16/90/52/1690525_det.jpg","original":"http://content7.flixster.com/movie/16/90/52/1690525_ori.jpg"},"abridged_cast":[{"name":"Keanu Reeves","id":"162654049","characters":["Neo"]},{"name":"Laurence Fishburne","id":"162669090","characters":["Morpheus"]},{"name":"Carrie-Anne Moss","id":"162669130","characters":["Trinity"]},{"name":"Hugo Weaving","id":"162709905","characters":["Agent Smith"]},{"name":"Glori |
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
Peccatum, Destructhor, Silenoz, Blood of Kingu, Abruptum, Hate Forest, Demoniac, Tsjuder, Kaiaphas, Ihsahn, Myrkskog, Maurizio Iacono, John McEntee, Manes, Uli Kusch, Narqath, Incantation, Armored Saint, Charred Walls of the Damned, Ved Buens Ende, Beyond Fear, Ildjarn, Holy Moses, Old Funeral, The Kovenant, Carpe Tenebrum, Chroma Key, Michael Amott, Jim Matheos, Nagelfar, Borknagar, Necrophobic, Blackmoon, Koshi Inaba, Casey Chaos, Arcturus, Schmier, Thou Shalt Suffer, Tormentor | |
De Staat, The Paupers, Arbovirus, 12012, Juliette Greco, Los Mockers, The Head and the Heart, The Wu Tang Clan, Bass Drum of Death, Tiny Dancers, Telephone Jim Jesus, Ghost Brigade, Pegazus, Angband, Unfact, Cirith Gorgor, Incongruous, Heathers, The Shamrock, December Wolves, Mimi Farina, Obliveon, Headplate, Young Ejecta, Kalijuge, Matt Brain, The Lovely Sparrows, Asa Martin, Lost in Thought, Mad Heads, Rosenstolz, Morgan Harper Nichols, Kaliber, Jacob Golden, Serious Drinking, Randy and the Rainbows, Rose Cousins, Daggermouth, |
NewerOlder