This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| if whoami | grep root > /dev/null; then | |
| SYM="#" | |
| else | |
| SYM="$" | |
| fi | |
| export PS1="\w\$(parse_git_branch)$SYM " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| indent_columns = 4 # The number of columns to indent per level. | |
| indent_with_tabs = 0 # How to use tabs when indenting code 0=spaces only | |
| sp_func_call_paren = force # Add or remove space between function name and '(' on function calls. | |
| nl_end_of_file = remove # Add or remove newline at the end of the file. | |
| nl_fdef_brace = force # Add or remove newline between function signature and '{'. | |
| sp_after_ptr_star = remove # Add or remove space after pointer star '*', if followed by a word. | |
| sp_before_ptr_star = force # Add or remove space before pointer star '*'. | |
| sp_between_ptr_star = remove # Add or remove space between pointer stars '*'. | |
| sp_type_func = force # Add or remove space between return type and function name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "meta": { "theme": "kwan" }, | |
| "basics": { | |
| "name": "Carlo Lobrano", | |
| "label": "Software Developer", | |
| "picture": "", | |
| "email": "c.lobrano@gmail.com", | |
| "phone": "(912) 555-4321", | |
| "website": "http://carlolobrano.com", | |
| "summary": "Richard hails from Tulsa. He has earned degrees from the University of Oklahoma and Stanford. (Go Sooners and Cardinals!) Before starting Pied Piper, he worked for Hooli as a part time software developer. While his work focuses on applied information theory, mostly optimizing lossless compression schema of both the length-limited and adaptive variants, his non-work interests range widely, everything from quantum computing to chaos theory. He could tell you about it, but THAT would NOT be a “length-limited” conversation!", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # vi: set ft=python : | |
| ''' | |
| usage: dominant.py --filename=<path> [--order=<order>] [--npoints=<value>] | |
| options: | |
| -f path, --filename=path Name of the icon | |
| -o value, --order=value Order of the super ellise [default: 4] | |
| -n points, --npoints=npoints Number of points that render the background [default: 50] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Save this file into ~/.config/nvim/init.vim | |
| " | |
| " BASIC SETUP: | |
| syntax enable | |
| filetype plugin on | |
| " FINDING FILES | |
| " Search down into subfolders | |
| set path+=** | |
| set wildmenu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script> | |
| var ws = new WebSocket('ws://localhost:8080'); | |
| ws.onmessage = function (event) { | |
| document.getElementById('result0').value=event.data; | |
| } | |
| </script> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const WebSocket = require ('ws'); | |
| const wss = new WebSocket.Server({host:'localhost', port:'8080'}); | |
| wss.broadcast = function (data) { | |
| wss.clients.forEach ( client => { | |
| if (client.readyState === WebSocket.OPEN) { | |
| client.send (data); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying that "clobrano.id" is my Blockstack ID. https://onename.com/clobrano |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Dockerizing MongoDB: Dockerfile for building MongoDB images | |
| # Based on ubuntu:latest, installs MongoDB following the instructions from: | |
| # http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ | |
| ## Usage | |
| ## Basic way | |
| ## Usage: docker run --name <name for container> -d <user-name>/<repository> | |
| #$ docker run -p 27017:27017 --name mongo_instance_001 -d my/repo | |
| # | |
| ## Dockerized MongoDB, lean and mean! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if exists("b:current_syntax") | |
| finish | |
| endif | |
| hi Cyan3 ctermfg=43 guifg=#00d7af "rgb=0,215,175 | |
| hi DarkBlue ctermfg=18 guifg=#000087 "rgb=0,0,135 | |
| hi DarkGreen ctermfg=22 guifg=#005f00 "rgb=0,95,0 | |
| hi DarkMagenta ctermfg=90 guifg=#870087 "rgb=135,0,135 | |
| hi DarkOrange ctermfg=208 guifg=#ff8700 "rgb=255,135,0 | |
| hi Green3 ctermfg=34 guifg=#00af00 "rgb=0,175,0 |
NewerOlder