See the snippets "guide.md" and "redis.md" below.
If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:
| package Ovids::Debugger; | |
| # vim: syntax=perl | |
| =head1 NAME | |
| .perldb - Customize your Perl debugger | |
| =head1 USAGE |
See the snippets "guide.md" and "redis.md" below.
If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:
| use Inline::Python; | |
| my $py = Inline::Python.new(); | |
| $py.run('import matplotlib.pyplot'); | |
| class Matplotlib::Mlab { | |
| method FALLBACK($name, |c) { | |
| $py.call('matplotlib.mlab', $name, |c) | |
| } | |
| } |
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: kube-registry-v0 | |
| namespace: kube-system | |
| labels: | |
| k8s-app: kube-registry | |
| version: v0 | |
| spec: | |
| replicas: 1 |
| FROM alpine:latest | |
| MAINTAINER Tru Huynh <[email protected]> | |
| RUN apk update && apk upgrade | |
| RUN apk add \ | |
| perl \ | |
| make | |
| RUN \ | |
| cpan install Number::Format |
| (require 'dash) | |
| (require 's) | |
| (defmacro with-face (STR &rest PROPS) | |
| "Return STR propertized with PROPS." | |
| `(propertize ,STR 'face (list ,@PROPS))) | |
| (defmacro esh-section (NAME ICON FORM &rest PROPS) | |
| "Build eshell section NAME with ICON prepended to evaled FORM with PROPS." | |
| `(setq ,NAME |
Lots of developers argue about which programming language should be used to do this and that, in reality, all their answers are hugely affected by self bias, most of the time, programmers would use something in favor of something else because of comfortability, they are simply more comfortable using whatever they chose.
All high-level programming languages are pretty much alike, they were built on top of the same concepts, there's MVC in PHP, Java, JavaScript, Python, .NET, etc., they may differ in syntax, but at their very core, they are alike. Much like humans, we differ in color, height, body size, etc., but at our very core, we're all alike, but they differ in terms of speed, like humans differ in intelligence.
So, I made a bubble sort implementation in Java, JavaScript, PHP, and Python. If you don't know the bubble sort algorithm yet and you want to know, then read the [pseudocode](https://gist.github.com/aprilmintacpineda/7800a989f1f494ee8d
| from __future__ import print_function | |
| def picount(n): | |
| count = 2.0 | |
| i = 0 | |
| j = 1 | |
| for k in range(0,n): | |
| if k % 2 == 0: | |
| i += 2 | |
| else: |
This NixOS code ensures that the system provide version-specific $LOCALE_ARCHIVE
environment variables to mitigate the effects of
NixOS/nixpkgs#38991.
To deploy it, copy the file into your /etc/nixos folder using a file name
like multi-glibc-locale-paths.nix. Then edit your configuration.nix file to
contain the attribute:
imports = [ ./multi-glibc-locale-paths.nix ];
direnv Nix integration from projects loads a Nix shell every new terminal or every time shell.nix and/or default.nix changes. On larger projects with a lot of Nix shell dependencies, that can cause the terminal to take more than 6 seconds to load, which significantly degrades the developer experience (DX).