emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/
- Redo -
C-?
- Change case: 1. Camel Case :
M-c
2. Upper Case :M-u
- Lower Case :
M-l
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
sudo: required | |
dist: trusty | |
before_install: | |
- openssl aes-256-cbc -K $encrypted_65b80f527c7e_key -iv $encrypted_65b80f527c7e_iv -in .dropbox_uploader.enc -out ~/.dropbox_uploader -d | |
- ./tlsetup.sh | |
script: | |
- make latex COMPILER=xelatex | |
- ./dropbox_uploader.sh upload _build/main.pdf ${TRAVIS_BRANCH}/main-latest.pdf | |
- ./dropbox_uploader.sh upload _build/main.pdf ${TRAVIS_BRANCH}/main-${TRAVIS_JOB_NUMBER}.pdf |
I hereby claim:
To claim this, I am signing this object:
# A Simple Makefile for LaTeX | |
# Author: Lester James V. Miranda | |
# E-mail: ljvmiranda@gmail.com | |
# Default variables which can be edited via the terminal | |
BUILDDIR = _build | |
COMPILER = pdflatex | |
PROJECT = main | |
BIBLIOGRAPHY = bibliography |
const { Storage } = require("@google-cloud/storage"); | |
/** | |
* Auto-generated from cloud-build-badge. To deploy this cloud function, execute | |
* the following command: | |
* gcloud functions deploy christmAIs \ | |
* --runtime nodejs6 \ | |
* --trigger-resource cloud-builds \ | |
* --trigger-event google.pubsub.topic.publish | |
* |
int counter = 0; | |
int mode = 1; | |
bool mode_1_state = LOW; | |
bool mode_2_state = LOW; | |
unsigned long lastModeTime = 0; | |
int speed = 1000; | |
int led1_pin = 0; | |
int led2_pin = 1; |
This is a simple implementation of a 2-M-1 neural network trained using different optimization algorithms in order to solve the two-spiral problem. The two-spiral problem is a particularly difficult problem that requires separating two logistic spirals from one another [1] [2].
This utilizes a three-layer neural network (2 hidden layers with tanh and 1 output layer with softmax) to solve the two-spiral problem.
Included in this gist is data_utils.py
which has the method load_twin_spiral()
in order to generate the data. All of the computations in the neural network (feedforward and backpropagation) are done using the numpy
package.
If you wish to use the classes in this gist, simply import the module network
and load the class:
from network import *
from data_utils import *
import pytest | |
def square(num): | |
return num * num | |
def recursive_map(f, _list): | |
"""Recusive map implementation.""" | |
if not _list: |
def export_as_rendered_image(layer, outfile): | |
"""Export a QGIS Layer as the rendered image | |
Usage | |
----- | |
Use this while working inside QGIS. As of now, I'm not sure | |
how to run this outside of QGIS. In addition, files are saved | |
in your home directory | |
..code-block:: python |