A collection of apt source lists for UK based Linux hosts.
Simply copy and paste the relevant source.list into the following location /etc/apt/source.list
.
Configuration files which create a fancy FiSH shell prompt. Note that these make use of the baseline unix utility for reporting the current working directory. To display the full path, simply replace the command (basename $PWD)
with (prompt_pwd)
.
Create the config directory with mkdir -p ~/.config/fish
as a regular user and as root. Copy the configurations for each to a file called ~/.config/fish/config.fish
.
Configure as needed.
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', | |
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'install', | |
1 verbose cli '-g', | |
1 verbose cli 'nodemon' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose install initial load of C:\Users\Karl Bateman\AppData\Roaming\npm\package.json | |
5 verbose readDependencies loading dependencies from C:\Users\Karl Bateman\AppData\Roaming\npm\package.json |
from urllib2 import urlopen | |
code = urlopen("http://example.com/").code | |
if (code / 100 >= 4): | |
print "Nothing there." | |
# via http://stackoverflow.com/questions/1966086/how-can-i-determine-if-anything-at-the-given-url-does-exist |
// import dependancies | |
let config = require('./core/config'); | |
let gulp = require('gulp'), | |
// styles | |
less = require('gulp-less'), | |
cssnano = require('gulp-cssnano'), | |
// scripts | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
// images |
#!/usr/env sh | |
## | |
# Install autocomplete for Atom | |
# | |
echo 'Installing Atom Autocomplete' ; echo ; | |
apm install autocomplete-bibtex atom-ternjs autocomplete-python autocomplete-xml | |
echo 'Complete!' |
I hereby claim:
To claim this, I am signing this object:
{ | |
"-1": "Unknown error", | |
"0": "No error", | |
"1": "User canceled action", | |
"2": "Memory error", | |
"3": "Command is unavailable (for example, wrong operating system, wrong mode, etc.)", | |
"4": "Command is unknown", | |
"5": "Command is invalid (for example, a Set Field script step does not have a calculation specified)", | |
"6": "File is read-only", | |
"7": "Running out of memory", |
The following JS Bin serves as a template for creating Javascript solutions for CodeWars.