Just some git hooks I'm putting together
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
# Correct LineWidth values for ToonShader nodes for Poser 7 and earlier | |
# | |
# Poser versions prior to 8 handled the LineWidth node value differently | |
# than Poser 8 and later. This script allows you to batch-correct the line-value, | |
# saving the effort of having to click on every single material. | |
import poser | |
scene = poser.Scene() | |
actor = scene.CurrentActor() |
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
DELIMITER | | |
CREATE PROCEDURE explode( pDelim VARCHAR(32), pStr TEXT) | |
BEGIN | |
DROP TABLE IF EXISTS temp_explode; | |
CREATE TEMPORARY TABLE temp_explode (id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, word VARCHAR(40)); | |
SET @sql := CONCAT('INSERT INTO temp_explode (word) VALUES (', REPLACE(QUOTE(pStr), pDelim, '\'), (\''), ')'); | |
PREPARE myStmt FROM @sql; | |
EXECUTE myStmt; | |
END | |
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 | |
/** | |
* Flash Messages helper class | |
* | |
* @package FlashMessages | |
* @author Jess Green <jgreen @ psy-dreamer.com> | |
* @license http://opensource.org/licenses/MIT MIT | |
*/ | |
class FlashMessages | |
{ |
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
Host * | |
Compression yes | |
ControlMaster auto | |
ControlPath /tmp/ssh-conn-%r@%h:%p.con | |
ControlPersist 30 | |
ForwardAgent yes | |
ServerAliveInterval 100 | |
IdentityFile ~/.ssh/id_rsa | |
AddKeysToAgent yes | |
UseKeychain yes |
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
-- I'm lazy so this is what I did | |
SELECT CONCAT("['id' => ", id, ", 'some_column_string' => '", some_column, "'],") FROM mytable; |
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 | |
/** | |
* Theme view template example using locate_template | |
* | |
* @return string | |
*/ | |
function my_theme_template() | |
{ | |
// do view related stuff |
Favorite large mug. Soup mug would be ideal.
- 4 tbs flour (sifted)
- 2 tbs sugar
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 | |
// maybe expand this to do more than just objects and arrays? | |
echo "<script>console.log(" . json_encode($myObjectOrArray) . ");</script>"; |
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
.marquee { | |
overflow: hidden; | |
position: relative; | |
} | |
.marquee .responsive-table { | |
width: 100%; | |
height: max-content; | |
display: block; |