Skip to content

Instantly share code, notes, and snippets.

# Reset
Color_Off='\e[0m' # Text Reset
# Regular Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
@dduleone
dduleone / .bash_aliases
Last active December 21, 2015 03:19
bash configuration
echo "Proccessing .bash_aliases"
##
## General & Utils
##
########################################
alias hackchrome='subl -n ~/code/ChromeExtensions/'
alias hackbash='vim ~/.bash_profile && . ~/.bash_profile'
alias showbash='cat ~/.bash_profile'
@dduleone
dduleone / manifest.json
Last active December 21, 2015 03:19
Craps Chrome App
{
"manifest_version": 2,
"name": "DuLeone Craps",
"description": "DuLeone Craps is an HTML5 implementation of the popular Craps casino game.",
"version": "1",
"app": {
"urls": [
"*://m.duleone.com/craps",
"*://www.duleone.com/craps/"
],
@dduleone
dduleone / color_to_num_array.js
Created September 4, 2013 12:51
JS Color To Number Array
var colorToNumArray = function(color){
var colorArray = []
var cleanColor = ''
if(color.split('')[0]='#'){
cleanColor = color.slice(1);
} else {
cleanColor = color;
}
var split = cleanColor.split('');
'use strict';
var app = angular.module('selfTrickleCalculator');
app.factory('TrickleCalcAPI', function () {
return {
link: null,
moa: null,
@dduleone
dduleone / gsschat_resize.js
Created November 20, 2013 17:07
Resize Google Spreadsheet's Chat/Collaboration area. This is intended to be copy/pasted into a Chrome browser bookmark.
javascript:(function(){
var x = prompt('Enter the desired width, in pixesl. (default: 250)', 250);
document.getElementsByClassName('docs-chat-pane-container')[0].style.width = x + 'px';
document.getElementsByClassName('docs-chat-edit-container')[0].style.width = x + 'px';
document.getElementsByClassName('docs-chat-edit-box')[0].style.width = (x - 32) + 'px';
document.getElementById('docs-chat-messages').children[document.getElementById('docs-chat-messages').children.length-1].scrollIntoView();
}());
@dduleone
dduleone / ChromeCastImageFolder
Created December 9, 2013 08:19
JavaScript Chrome Toolbar Button to turn a folder listing of images into img tags with the images. The width of the images will be the width of the browser window, and the aspect ratio will be maintained. Intended use case is for sharing a folder of images via ChromeCast
javascript:(function () {
var anchors = document.getElementsByTagName('a');
var body = document.getElementsByTagName('body')[0];
body.style.margin='0px';
for (i in anchors) {
if (anchors[i].href && anchors[i].href.toUpperCase().indexOf('.JPG') !== -1) {
var img = document.createElement('img');
img.src = anchors[i].href;
img.onload = function () {
var height = this.height;
@dduleone
dduleone / l+kemoi.txt
Created January 30, 2014 20:05
L&K Emoji
Raͩnͤsͣoͭmͪ
A
 aͣ bͣ cͣ dͣ eͣ fͣ gͣ hͣ iͣ jͣ kͣ lͣ mͣ nͣ oͣ pͣ qͣ rͣ sͣ tͣ uͣ vͣ wͣ xͣ yͣ zͣ
E
 aͤ bͤ cͤ dͤ eͤ fͤ gͤ hͤ iͤ jͤ kͤ lͤ mͤ nͤ oͤ pͤ qͤ rͤ sͤ tͤ uͤ vͤ wͤ xͤ yͤ zͤ
I
 aͥ bͥ cͥ dͥ eͥ fͥ gͥ hͥ iͥ jͥ kͥ lͥ mͥ nͥ oͥ pͥ qͥ rͥ sͥ tͥ uͥ vͥ wͥ xͥ yͥ zͥ
@dduleone
dduleone / RenderArray NotWorking1
Created March 4, 2014 18:57
RebelMouse Render Array Tests
$render = array(
'#tag' => 'iframe',
'#attributes' => array (
'src' => url($url),
'width' => '100%',
'scrolling' => 'auto',
'height' => '500',
'frameborder' => '0',
),
'#prefix' => '<div class="nbcuoxy-rebelmouse">',