Comments (3)
You mean this for Python?
# Python is a high-level programming language
# and python is a Python interpreter.
# Basic example of server with python
# Will start a Web Server in the current directory on port 8000
# go to http://127.0.0.1:8000
#
# Python v2.7
python -m SimpleHTTPServer
# Python 3
python -m http.server 8000
# SMTP-Server for debugging, messages will be discarded, and printed on stdout.
python -m smtpd -n -c DebuggingServer localhost:1025
# Pretty print a json
python -mjson.tool
# See also:
# Python language cheat sheets at /python/
# list of pages: /python/:list
# learn python: /python/:learn
# search in pages: /python/~keyword
Yes, currently it shows nothing, but we soon special "menu" page will be shown for all languages including csharp.
What command line C#-related commands would you include in this menu?
Do you have any ideas? What would you like to see there?
from cheat.sh.
I guess I was just pinging some different URL's and nothing C# was working. Is C# implemented?
from cheat.sh.
I have checked a couple of queries, and everything works like a charm:
$ curl cht.sh/csharp/copy+file
// C# Copy a file to another location with a different name
System.IO.File.Copy(oldPathAndName, newPathAndName);
// [Marc Gravell] [so/q/3881450] [cc by-sa 3.0]
$ curl cht.sh/csharp/sort+list
/*
* c# - How to Sort a List<T> by a property in the object
*
* The easiest way I can think of is to use Linq:
*/
List<Order> SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();
// [Lazarus] [so/q/3309188] [cc by-sa 3.0]
$ curl cht.sh/csharp/create+file
/*
* c# - Create a .txt file if doesn't exist, and if it does append a ...
*
* Use the correct constructor (http:msdn.microsoft.com/en-
* us/library/36b035cb.aspx):
*/
else if (File.Exists(path))
{
using(var tw = new StreamWriter(path, true))
{
tw.WriteLine("The next line!");
}
}
// [Daniel Hilgarth] [so/q/9907682] [cc by-sa 3.0]
All queries were just random, first things I thought about.
And all of them were 100% hit.
Please try you too
from cheat.sh.
Related Issues (20)
- 500 Internal Server Error when send request to https://cht.sh/:shell-x/ HOT 14
- 500 internal server error HOT 2
- When we ask to write javascript code, It just uses npm library in code, But does not mention it HOT 2
- Hehe
- https://github.com/makerdao/dss/blob/master/src/test/clip.t.sol#L20
- Error installing using pip on windows 10 HOT 2
- Manpage for cht.sh (command line client)
- Open in less if output is too long
- cheat.sh and cht.sh are down HOT 3
- Block this WhatsApp number 739963934 HOT 1
- Block this WhatsApp number 739963934 HOT 2
- [email protected] HOT 1
- حظر حسبي وتس وشكرا الحساب 7/3/99/63/934/
- fsharp examples
- Omit :list from ~search
- Support setting history file location with env variable
- I made a (bash & fish) shell function and alias to use cheat.sh without having to install it. HOT 4
- Cht.sh is down 🤯 HOT 2
- docker ImportError: cannot import name '_plain_int' from 'werkzeug._internal' (/usr/lib/python3.9/site-packages/werkzeug/_internal.py) and seek advice
- raw html in terminal when user-agent is set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheat.sh.