To open a file in Vim:
vim <filename>
Navigation | |
---|---|
h |
move one character left |
j |
move one row down |
"""Another way, note this one will load the whole array into memory .""" | |
from keras.preprocessing.image import ImageDataGenerator | |
import h5py | |
from keras.utils.io_utils import HDF5Matrix | |
seed=0 | |
batch_size=32 | |
# we create two instances with the same arguments | |
data_gen_args = dict( | |
rotation_range=90., |
# Standard scientific Python imports | |
import pylab as pl | |
import numpy as np | |
from time import time | |
# Import datasets, classifiers and performance metrics | |
from sklearn import datasets, svm, pipeline | |
from sklearn.kernel_approximation import (RBFSampler, | |
Nystroem) | |
from sklearn.utils import shuffle |
#!/usr/bin/eggdrop | |
# ^- This should contain a fully qualified path to your Eggdrop executable. | |
# | |
# $Id: eggdrop.conf,v 1.51 2008-02-16 20:15:30 guppy Exp $ | |
# | |
# This is a sample Eggdrop configuration file which includes all possible | |
# settings that can be used to configure your bot. | |
# | |
# The pound signs (#) that you see at the beginning of some lines mean that | |
# the remainder of that line is a comment, or just for your information. By |
# required: RGtk2 | |
calculateGUI <- function() { | |
## Run on "OK" | |
performStatistics <- function(button, user.data) { | |
res <- NULL | |
d <- NULL | |
error <- NULL | |
warning <- NULL | |
# Get the information about data and the file | |
the.file <- filename$getText() |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
# -------------------------------------- | |
# Now compatible with Pelican 4.0.x! | |
# -------------------------------------- | |
# Added by me | |
import time |
# For Windows users# Note: <> denotes changes to be made | |
#Create a conda environment | |
conda create --name <environment-name> python=<version:2.7/3.5> | |
#To create a requirements.txt file: | |
conda list #Gives you list of packages used for the environment | |
conda list -e > requirements.txt #Save all the info about packages to your folder |