Skip to content

Instantly share code, notes, and snippets.

View RohitRathore1's full-sized avatar
🎯
Focusing

Rohit Singh Rathaur RohitRathore1

🎯
Focusing
View GitHub Profile
#!/usr/bin/env python3
# Copyright (c) 2017-2021 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""An example functional test
The module-level docstring should include a high-level description of
what the test is doing. It's the first thing people see when they open
the file and should give the reader information about *what* the test
is testing and *how* it's being tested
"""
@RohitRathore1
RohitRathore1 / Surrogates.jl
Created August 14, 2020 12:11
Gists of surrogates package on which I am working
using Plots # hide
default(c=:matter, legend=false, xlabel="x", ylabel="y") # hide
using Surrogates # hide
function leon(x)
x1 = x[1]
x2 = x[2]
term1 = 100*(x2 - x1^3)^2
term2 = (1 - x1)^2
y = term1 + term2
If you have messed in your fork repository after doing some changes then to avoid this problem follow these steps:
## Clean up a fork and restart it from a upstream
The simplest solution would be (using `upstream` as the remote name referencing the original repo forked):
```
git remote add upstream /url/to/original/repo
git fetch upstream
git checkout master
@RohitRathore1
RohitRathore1 / PY0101EN-1-2-Strings.ipynb
Created July 28, 2019 06:34
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RohitRathore1
RohitRathore1 / PY0101EN-1-1-Types.ipynb
Created July 28, 2019 06:12
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.