Skip to content

Instantly share code, notes, and snippets.

View NonLogicalDev's full-sized avatar

Oleg Utkin NonLogicalDev

View GitHub Profile
<html>
<head>
<title>First Haml Page</title>
<meta charset='UTF-8' />
<style type='text/CSS'>
/* testing :sass */
.funky_text {
color: red;
font-weight: bold; }
@NonLogicalDev
NonLogicalDev / Stack.h
Created October 15, 2012 08:16
Stack Template -- My stab at purty coding.
// Lab Lab 8a (Calculator8)
// Programmer: Oleg Utkin
// Editor(s) used: Xcode
// Compliler(s) used: Xcode
//
#include <iostream>
#ifndef NULL
#define NULL reinterpret_cast<void *>(0)
@NonLogicalDev
NonLogicalDev / gist:4201590
Created December 4, 2012 07:40
Negative pressure Unit Calculator (revised)
/**
* Calculate the amount of Negative pressure needed for a given size of an enclosed area.
* @authr Phoenix560.
* November 2012
*/
#include <iostream>
#include <cmath>
using namespace std;
^ # start of the line
http(s)? # http or https
:\/\/ # ://
(www\.)? # maybe www subdomain
[^\s]* # no spaces allowed
$ # end of the line
@NonLogicalDev
NonLogicalDev / prefs.js
Last active December 20, 2015 09:59 — forked from johnbender/prefs.js
// Use this for nOtch2k
term_.prefs_.set('background-color', "#202020");
term_.prefs_.set('foreground-color', "#a0a0a0");
term_.prefs_.set('color-palette-overrides', [
'#383838',
'#a95551',
'#606060',
'#a98051',
'#657d3e',
class EventLoop
class AlreadyRunning < StandardError; end
class CantTerminate < StandardError; end
def start
raise AlreadyRunning, "Event loop is already running" if @event_loop
@event_loop = Thread.new do
Thread.current[:events] = []
dag = log --graph --date=local --format='format:%C(yellow)%h%C(reset) %C(blue)%cn <%ce>%C(reset) %C(magenta)%cd%C(reset)%C(auto)%d%C(reset)%n%s' --date-order
failed=0
if [[ -z `command -v node` ]]; then
printf `tput setaf 1` 1>&2
echo "ERROR: You need to install NodeJS" 1>&2
printf `tput sgr0` 1>&2
echo "You can get instructions here" 1>&2
printf `tput setaf 2` 1>&2
echo " http://nodejs.org" 1>&2
printf `tput sgr0` 1>&2
# Prompt Settings =============================================================
T_LEFT=(' '
'$(sp)'
'$(add [ ls_dirs ])' # Directory list
'$(add $(sp) vcs_status)' # Status of version controll
# '$(add $(sp) rvm_ver)' # Active version of ruby
# '$(add $(sp) nvm_ver)' # Active version of node
'>'
)
#!/bin/bash
###############################################
# INStALL: curl -L https://goo.gl/XzaObE | bash
###############################################
ZSHELL_LOC=/bin/zsh
main() {
Log0 "Installing Packages"
MAIN_PACKAGES=("git" "zsh" "vim" "exuberant-ctags")