Ever started working on the wrong branch with Git? Use gist stash
! Here is how to proceed in 3 steps:
1. Use stash to detach unstaged changes:
$ git stash
from random import choice | |
from string import ascii_lowercase, ascii_uppercase, digits | |
from tkinter import Tk, Entry, Button, StringVar | |
def random_string(length): | |
return ''.join(choice(ascii_lowercase + digits + ascii_uppercase) for i in range(length)) | |
root = Tk() | |
root.title('32 chars random string generator') |
import ApolloClient, { createNetworkInterface } from 'apollo-client'; | |
import RecursiveIterator from 'recursive-iterator'; | |
//import fetch from 'node-fetch'; | |
import { print as printGraphQL } from 'graphql-tag/printer'; | |
import _ from lodash; | |
export function makeApolloFileHandler() { | |
const url = `https://us-west-2.api.scaphold.io/graphql/my-awesome-app`; | |
const networkInterface = createNetworkInterface(url); | |
networkInterface.query = (request) => { |
PyCharm has support for virtual environment.
But there are two problems:
postactivate
file.This gist is the solution I found to resolve these two problems.