What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-22 06:57:10
python requests with login
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text '{"type&quo... Add solution -
Other 2021-10-22 00:19:13
github new repository
# New local repository git init git add . git commit -m "Initial commit" # New remote repository # Create remote repository (likely on github), then: git remote add origin https://github.com/username/new_repo #https git remote add origin git@gi... Add solution -
Other 2021-10-21 04:53:03
git create new repo
# New local repository git init git add . git commit -m "Initial commit" # New remote repository # Create remote repository (likely on github), then: git remote add origin https://github.com/username/new_repo #https git remote add origin git@gi... Add solution -
C# 2021-10-19 18:51:04
oauth2 authentication .net core example
using System.Net.Http; using System.Net.Http.Headers; using System.Security.Claims; using System.Text.Json; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authentication.OAuth; usin... Add solution -
Other 2021-10-19 10:14:12
ls-remote --tags --heads ssh://[email protected]/Qix-/node-error-ex.git
"dependencies": { ... "discord.js": "github:vecchiotom/discord.js", ... } Don’t use github: prefix, it is very moody, just use git+https://github.com/user/repo.git. Add solution -
Shell/Bash 2021-10-10 05:30:09
init step way to create repository git
# New local repository git init git add . git commit -m "Initial commit" # New remote repository # Create remote repository (likely on github), then: git remote add origin https://github.com/username/new_repo #https git remote add origin git@gi... Add solution
Best helpers
Andrew Lowe
+5
Catimann
+5
Thruston
+5
Tralston
+5
Silver Rain
+5
Mahnaz
+5
JohnDoe
+5
Akiman Barwa
+5
PixelZerg
+5
Jeff Ava
+5