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 | |
$args = array( | |
'orderby' => 'name', | |
'order' => 'ASC', | |
'taxonomy' => 'client_cat', | |
'hide_empty' => '0' | |
); | |
$categories = get_categories($args); |
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 | |
$args = array( 'post_type' => 'clients' , 'posts_per_page' => '-1' ); | |
$c = new WP_Query( $args ); | |
if( $c->have_posts() ) { | |
while( $c->have_posts() ) { | |
$c->the_post(); | |
$extraClasses = wp_get_post_terms($post->ID, 'client_cat', array("fields" => "slugs")); ?> | |
<?php foreach ($extraClasses as $key => $value) { echo $value . ' '; } ?>" |
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
<script> | |
/* get the screen size and sets each section to its height */ | |
$(window).on("load resize", function() { | |
var width = $(window).width(); | |
var height = $(window).height(); | |
var menu = $(".nav").height(); | |
$('.h').css({ 'height' : ( ($(window).height() ) - menu ) }) ;} | |
}); |
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 | |
define('WP_HOME','http://localhost/'); | |
define('WP_SITEURL','http://localhost/'); | |
?> |
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
/* | |
LESS CSS BOILERPLATE | |
*/ | |
@import "lesshat.less"; | |
@import url(http://fonts.googleapis.com/css?family=Arvo:400,700); | |
/* RESET */ | |
html, body, div, span, applet, object, iframe, |
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
<script> | |
function initialize() { | |
var mapCanvas = document.getElementById('mapsp'); | |
var myLatlng = new google.maps.LatLng(-92.22222, -78.11122); | |
var iconBase = '<?php bloginfo('template_url'); ?>/img/'; | |
var mapOptions = { | |
center: myLatlng, | |
zoom: 16 | |
} | |
var map = new google.maps.Map(mapCanvas, mapOptions); |
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
/** | |
* @see https://github.com/siongui/palidictionary/blob/master/static/js/draggable.js | |
* @see http://docs.angularjs.org/guide/compiler | |
*/ | |
angular.module('draggableModule', []). | |
directive('draggable', ['$document' , function($document) { | |
return { | |
restrict: 'A', | |
link: function(scope, elm, attrs) { |
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
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
puts "Start" | |
input = File.read("./input.txt") | |
input.gsub!(/\r\n?/, "\n") | |
input.each_line do |line| | |
s = line.strip | |
puts "./arachni #{s} --report-save-path ./reports" | |
system("./arachni #{s} --report-save-path ./reports") | |
end | |
puts "End" |
OlderNewer