pip install IPython
put early in your code (e.g. main.py)
# source: https://stackoverflow.com/a/52797444/227260
# From https://coderwall.com/p/-wbo5q/pip-install-a-specific-github-repo-tag-or-branch | |
pip install -e git://github.com/{ username }/{ reponame }.git@{ tag name }#egg={ desired egg name } |
# https://stackoverflow.com/a/77768997/227260 | |
CONDA_DIR="$HOME/anaconda3" | |
CONDA_DIR_BAK="${CONDA_DIR}_bak" | |
# Miniconda: https://docs.anaconda.com/free/miniconda/miniconda-other-installer-links/ | |
# Anaconda: https://repo.anaconda.com/archive/ | |
CONDA_INSTALL_SHELL="https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh" | |
# Check if backup directory exists and move if it does not |
version: 2.1 | |
jobs: | |
build-deploy: &build-deploy | |
docker: | |
- image: circleci/node:10.15.1-browsers | |
working_directory: ~/repo | |
steps: | |
- checkout |
$ npm i -g plop | |
$ npm i --save-dev plop | |
// install the plopfile below | |
// install the template below | |
$ plop store:module | |
// repo root/plopfile.js: | |
module.exports = |
document.getElementsByClassName('CodeMirror')[0].style.height = '100%'; |
public class Value { | |
private boolean modified = false; | |
private int val; | |
public Value(initialVal) { | |
val = initialVal; | |
} | |
public void setVal(int newVal) { | |
val = newVal; |
// server | |
var express = require('express'); | |
var request = require('request'); | |
var apiServerHost = 'http://api.openweathermap.org'; | |
var app = express(); | |
app.use(function(req, res) { | |
var url = apiServerHost + req.url; | |
console.log('serving:', url); | |
req.pipe(request(url)).pipe(res); |
var $q = angular.element(document).injector().get('$q'); | |
function fn1() { | |
return $q.when('foo'); | |
} | |
function fn2(arg) { | |
console.log('fn2', arguments); | |
return $q.when(arg); | |
} |
I hereby claim:
To claim this, I am signing this object: