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
<section class="recent-posts"> | |
<?php | |
/** | |
* Begin the featured posts section. | |
* | |
* See if we have any sticky posts and use them to create our featured posts. | |
*/ | |
$sticky = get_option( 'sticky_posts' ); | |
// Proceed only if sticky posts exist. | |
if ( ! empty( $sticky ) ) : |
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 | |
//functions that need to be in the functions.php | |
//for this to work | |
//more tag detection | |
function has_more() | |
{ | |
global $post; | |
if ( empty( $post ) ) return; |
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 | |
/** | |
* Show Child Pages | |
* Works, no formating | |
* Must come after <?php the_post(); ?> | |
*/ | |
$myID = $post->ID; | |
$highlighted_args = array( | |
'post_parent' => $myID, |
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
//globals | |
//sip_ indicates value for the basket | |
sip_radius = 27.5; | |
sip_height = 55; | |
sip_lip_radius = 42.5; | |
sip_wick_radius = 3; | |
sip_wall_thickness = 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
//---------------------------------------------------------------- GLOBALS | |
//-------------------------------------------------- Yogurt Container | |
//these are the values for the container itself | |
yc_bottom_e_radius = 56/2; | |
yc_top_e_radius = 80/2; | |
yc_wall_thickness = 0.5; | |
yc_floor_thickness = yc_wall_thickness; | |
yc_bottom_i_radius = yc_bottom_e_radius-yc_wall_thickness; | |
yc_top_i_radius = yc_top_e_radius-yc_wall_thickness; |
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 main() { | |
var resolution = 24; // increase to get smoother corners (will get slow!) | |
var thickness = 3; | |
var lip = CSG.cylinder({ | |
start: [0, 55, 0], | |
end: [0, 58, 0], | |
radius: 42.5, | |
resolution: resolution |
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
//This code is testing code for the circut to make sure all of the | |
//physical Arduino I/O is working. It checks a potentiometer or other | |
//sensors on the AO PIN and equates it to the future number of mails | |
//in the inbox. | |
//------------------------------------------------- OUTPUTS AND THEIR VARIABLES | |
int beePins[beeTotalNumber] = {9, 10, 11 }; | |
//INPUTS AND THEIR VARIABLES | |
int howManyNewEmails = 0; |
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
# (find) in this directory (.) items of (-type) file (f) whose last modification (-mtime) was less than 365 days ago (-365) | |
# pipe the result into a file called newfiles.txt | |
find . -type f -mtime -365 > newfiles.txt | |
#look at newfiles.txt | |
cat newfiles.txt | |
#if everything listed is a malicious file | |
#run the find again, but instead of outputing to file | |
#run as a subprocess (-exec) the remove command (rm) on each result ({}) |
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 LICENSE | |
/*The MIT License (MIT) | |
Copyright (c) 2014 Carlyn Maw | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
void generateFiles() { | |
//derived from code found at http://forum.arduino.cc/index.php?topic=57460.0 | |
String fileName = String(); | |
String message = String(); | |
unsigned int filenumber = 1; | |
while(!filenumber==0) { | |
fileName = "file_"; | |
fileName += filenumber; | |
fileName += ".txt"; | |
message = fileName; |