cd my-repo
git checkout <branch>
This is the nuclear option. Have to be sure this is what is wanted! Substitute with the name of the file you want gone!
const fetch = require('node-fetch'); | |
const encoding = require('encoding'); | |
fetch('https://open.gsa.gov/code.json') | |
.then(response => response.buffer()) | |
.then(json => { | |
let text = {}; | |
if(json.indexOf('\uFEFF', 0, 'utf16le') === 0 ) { | |
text = encoding.convert(json, 'utf8', 'utf16le'); |
from rest_framework.exceptions import NotFound | |
def not_available_api_version(excluded_api_versions=None): | |
def decorator(func): | |
@wraps(func) | |
def wrapper(x, request, *args, **kwargs): | |
if excluded_api_versions and request.version in excluded_api_versions: | |
raise NotFound(detail=None) | |
return func(x,request, *args, **kwargs) |
I hereby claim:
To claim this, I am signing this object:
A command that lets you replace a word with another string. This let's you rename anything in your system and even lets you "make your own commands".
Well if you like writing the same string of commands over and over and you like to see your time just fly by just retyping commands then I suspect that you wouldn't care. But if you're like me and hate this then aliases are for you.
Let's seen some examples so you can see what I mean...