Skip to content

Instantly share code, notes, and snippets.

@dduleone
dduleone / confirm migration
Last active August 29, 2015 14:00
confirm migration
[#255]: Exporting Drupal Entity Id: 68921...
Email: [email protected]
Export Successful!
[#256]: Exporting Drupal Entity Id: 68926...
Email: [email protected]
Export Successful!
[#257]: Exporting Drupal Entity Id: 68931...
Email: [email protected]
@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">',
@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 / 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 / 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();
}());
'use strict';
var app = angular.module('selfTrickleCalculator');
app.factory('TrickleCalcAPI', function () {
return {
link: null,
moa: null,
@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('');
@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 / .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'