Python
https://realpython.com/python-virtual-environments-a-primer/
Mac
Sudo easy_install pip
<section class="posts wrapper"> | |
<article class="post post featured"> | |
<header> | |
<div class="feature"><span>Featured</span><i class="fa fa-bookmark fa-lg"></i></div> | |
<h2></h2> | |
<h1 id="posttitle"><a href="#">How to configure your AngularJS application using environment variables</a></h1> | |
<span> | |
Posted by <a href="https://twitter.com/jvandemo" target="_blank">Jurgen Van de Moere</a> | |
on <i class="fa fa-clock-o"></i> <time datetime="2016-02-24">February 24th, 2016</time>. | |
</span> |
Python
https://realpython.com/python-virtual-environments-a-primer/
Mac
Sudo easy_install pip
module.exports = function (app) { | |
// Install a "/ping" route that returns "pong" | |
app.get('/ping', function (req, res) { | |
res.send('pong'); | |
}); | |
// Express router middleware | |
var router = app.loopback.Router(); | |
router.get('/ping_express', function (req, res) { | |
res.send('pongaroo'); |
# The problem can be solved as follows: | |
# Boot Ubuntu Live DVD/USB in testing mode and open terminal | |
# Run installation process without installing bootloader by: | |
# sudo ubiquity -b | |
# Press Continue testing after installation is over. | |
# Mount newly installed file system on /mnt: |
#!/usr/bin/env bash | |
sudo apt update | |
sudo apt --yes install \ | |
software-properties-common \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl |
(function (api, $) { | |
'use strict'; | |
api.writeText = function (x, y, text, options) { | |
options = options || {}; | |
var defaults = { | |
align: 'left', | |
width: this.internal.pageSize.width | |
} |
var myApp = angular.module('myApp', []); | |
myApp.directive('googleplace', function() { | |
return { | |
require: 'ngModel', | |
link: function(scope, element, attrs, model) { | |
var options = { | |
types: [], | |
componentRestrictions: {} | |
}; |
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
Android has a unique memory management model. Below, are the notes taken while we try to understand it thoroughly.
The ActivityManager, among other things, is responsible for making sure that apps that are most important to the user and/or essential remain active. It does this by dynamically assigning values that roughly indicate the app's importance. When memory gets low these values are used to find the apps that need to be "trimmed." The memory from these "trimmed" apps is freed, making more available for the more important apps.
// Require.js allows us to configure shortcut alias | |
require.config({ | |
// The shim config allows us to configure dependencies for | |
// scripts that do not call define() to register a module | |
shim: { | |
'socketio': { | |
exports: 'io' | |
}, | |
'underscore': { | |
exports: '_' |