This file contains 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
:START | |
@echo off | |
SET /P Dir= Enter Name of Directory to Install Lithium Framework to | |
echo . | |
echo Installing Lithium Framework to ./%Dir% | |
START git clone https://github.com/UnionOfRAD/framework.git ./%Dir% | |
:WAITCLONE | |
SLEEP 1 |
This file contains 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
import fileinput | |
import sys, os | |
def addBefore(file,searchExp,inputExp): | |
if(os.path.isfile(file)): | |
for line in fileinput.input(file, inplace=1): | |
if searchExp in line: | |
sys.stdout.write(inputExp) | |
#line = line.replace(searchExp,replaceExp) | |
sys.stdout.write(line) |
This file contains 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
#!/bin/bash | |
# Download Drush v3 from D.O and make it work on `drush` (OS X / Linux / *nix) | |
# Written by stemount, adapted by KarenS | |
# Last updated by Drupalise IT (http://drupalise.it) on 13 Sep 2010 | |
# Update user | |
echo "Drush is now downloading via HTTP" | |
# move to home dir |
This file contains 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
function countCSSRules() { | |
var results = '', | |
log = '', | |
totalCount = 0, | |
totalRules = 0, | |
fileCount = 0; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { |
This file contains 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
/** | |
* @file media_youtube/js/media_youtube.js | |
*/ | |
(function ($) { | |
Drupal.media_youtube = {}; | |
Drupal.behaviors.media_youtube = { | |
attach: function (context, settings) { |
This file contains 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
<?php | |
/** | |
* @file media_youtube/includes/themes/media_youtube.theme.inc | |
* | |
* Theme and preprocess functions for Media: YouTube. | |
*/ | |
/** | |
* Preprocess function for theme('media_youtube_video'). |
This file contains 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
suits = { | |
"Clubs" : { | |
id: "clubs", | |
name: "Clubs", | |
unicode: "♣" | |
}, | |
"Spades": { | |
id: "spades", | |
name: "Spades", | |
unicode: "♠" |
This file contains 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
fn = function() { | |
x = 0 | |
y = 1 | |
prev = 1; | |
for(z = 0; z < 100; z++) | |
{ | |
prev = x; | |
x = y; | |
y = prev + x; | |
console.log(y); |
This file contains 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
AL | |
AK | |
AZ | |
AR | |
CA | |
CO | |
CT | |
DE | |
DC | |
FL |
This file contains 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
function addJQuery(callback) { | |
var script = document.createElement("script"); | |
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();"; | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); | |
} |
OlderNewer