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 | |
class GalleryInfo { | |
private $gallery = null; | |
private $ids = array(); | |
private $gallerySize = 'thumbnail'; | |
private $imagesMetadata = array(); | |
private function setIds() { |
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 | |
function InnerHTML(DOMNode $element) | |
{ | |
$innerHTML = ""; | |
foreach ($element->childNodes as $child) { | |
$innerHTML .= $element->ownerDocument->saveHTML($child); | |
} |
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 | |
alias bashrc="subl ~/.bashrc" |
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 | |
function nodeupdate() { | |
ARGC=$# | |
version=latest | |
if [ $ARGC != 0 ]; then | |
version=$1 | |
fi | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n $version |
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
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' |
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
var html = document.documentElement; | |
html.className = html.className.replace(/\bno-js\b/g, 'js'); |
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 | |
/** | |
* Plugin Name: Dequery | |
* Plugin URI: http://frasaleksander.github.io | |
* Description: Deregister new jquery and use the old one + migrate. Stocholm theme quickfix | |
* Version: 0.0.1 | |
* Author: Aleksander Fras | |
* Author URI: http://frasaleksander.github.io | |
* License: GPL2 | |
*/ |
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 | |
APPDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/ |
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 | |
curl -sL -w "%{http_code} %{url_effective}\\n" "INSERTURLHERE" -o /dev/null | |
#url - %{url_effective} | |
#code - %{http_code} | |
#inserturlhere - http://google.com for example |
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 gemsupdate(){ | |
sudo gem update `gem list | cut -d ' ' -f 1` | |
} |
OlderNewer