As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
########################################### | |
# Copyright (c) 2014 Jonathan Barronville # | |
# Minor tweaks by Richard North # | |
# License: MIT. # | |
########################################### | |
function fish_prompt | |
set last_command_status $status | |
echo '' |
""" | |
A deep neural network with or w/o dropout in one file. | |
License: Do What The Fuck You Want to Public License http://www.wtfpl.net/ | |
""" | |
import numpy, theano, sys, math | |
from theano import tensor as T | |
from theano import shared | |
from theano.tensor.shared_randomstreams import RandomStreams |
# include <stdio.h> | |
# include <stdlib.h> | |
# include <time.h> | |
# include <math.h> | |
float distance(int *, int *, int); | |
void printArr(int *, int, int, char *); | |
void printMat(int **, int, int, char *); | |
int main(int argc, char const *argv[]) |
########################################### | |
# Copyright (c) 2014 Jonathan Barronville # | |
# License: MIT. # | |
########################################### | |
function fish_prompt | |
set last_command_status $status | |
echo '' |
from random import randint | |
#----Step 1 | |
# First, choose two random primes. | |
# In real world, they should be really big primes (hundreds of digits). | |
p, q = 41, 47 | |
#----Step 2 | |
# From them we have n=p*q and phi(n)=(p-1)*(q-1). |
/* COMMAND LINE */ | |
mongod & // start mongo server on port 27017 by default | |
mongo mydb // launch mongo shell using the specified database | |
// importing & exporting | |
mongoimport -d mydb -c mycollection --jsonArray --file input.json | |
mongoimport -d mydb -c mycollection --headerline --type csv --file input.csv | |
mongoexport -d mydb -c mycollection --out output.json | |
/* MONGO SHELL */ |
/* | |
* get screenshot PNG from web page | |
* | |
* build: | |
* FLAGS=`pkg-config --cflags --libs gtk+-x11-2.0 glib-2.0 webkit-1.0` | |
* gcc -Wall $FLAGS getscreenshot.c -o getscreenshot | |
* | |
* usage: | |
* /usr/bin/xvfb-run -s "-screen 0 1024x768x24" ./getscreenshot test.html | |
* |