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
<a href="javascript: | |
(function() { | |
var elems = document.getElementsByClassName( 'UFILikeLink' ); | |
for ( var i = 0; i < elems.length; i++ ) { | |
if ( elems[i].style.display == 'none' ) { | |
elems[i].style.display = 'inline-block'; | |
} else { | |
elems[i].style.display = 'none' | |
} |
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 | |
/* | |
* Formats an array so that it can be copied and pasted directly as a PHP variable | |
* | |
* $arr => The input array | |
* $varname => Optional. Example, '$foo' will prefix return with '$foo = ' | |
* $output => 'pre' (default) outputs with a <pre> tag. true outputs, false returns a string | |
* $recursing => Used internally for recursion | |
*/ |
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
sudo update-rc.d -f apache2 remove | |
sudo update-rc.d -f mysql remove |
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/sh | |
# | |
# Example showing use of getopt detection and use of GNU enhanced getopt | |
# to handle arguments containing whitespace. | |
# | |
# Written in 2004 by Hoylen Sue <[email protected]> | |
# | |
# To the extent possible under law, the author(s) have dedicated all copyright and | |
# related and neighboring rights to this software to the public domain worldwide. | |
# This software is distributed without any warranty. |
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
<!doctype html> | |
<html> | |
<title>jquery.pagify.js</title> | |
<link rel="stylesheet" href="style.css"> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script type="text/javascript" src="jquery.pagify.js"></script> | |
<style type="text/css"> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} |
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
<!doctype html> | |
<html> | |
<title>jquery.searchify.js</title> | |
<link rel="stylesheet" href="style.css"> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script type="text/javascript" src="jquery.searchify.js"></script> | |
<style type="text/css"> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$steel: #666666; | |
footer { | |
.disclaimers, | |
.copyright { | |
color: $steel; |
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
// More information: https://danielupshaw.com/openscad-rounded-corners/ | |
// Set to 0.01 for higher definition curves (renders slower) | |
$fs = 0.15; | |
module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { | |
// If single value, convert to [x, y, z] vector | |
size = (size[0] == undef) ? [size, size, size] : size; | |
translate_min = radius; |
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
// More information: https://danielupshaw.com/openscad-rounded-corners/ | |
module roundedcube_simple(size = [1, 1, 1], center = false, radius = 0.5) { | |
// If single value, convert to [x, y, z] vector | |
size = (size[0] == undef) ? [size, size, size] : size; | |
translate = (center == false) ? | |
[radius, radius, radius] : | |
[ | |
radius - (size[0] / 2), |
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 | |
// Add tag_slug__not_in to valid taxonomy queries | |
add_action('parse_tax_query', function($wp_query) { | |
$q = &$wp_query->query_vars; | |
$tax_query = array(); | |
if (!empty($q['tag_slug__not_in'])) { | |
$q['tag_slug__not_in'] = array_map('sanitize_title_for_query', array_unique((array)$q['tag_slug__not_in'])); | |
$tax_query[] = array( |
OlderNewer