openssl enc -aes-256-cbc -a -in wallet-info.txt -out wallet-info.txt.enc
openssl enc -aes-256-cbc -d -a -in wallet-info.txt.enc -out wallet-info.txt
| if (!String.prototype.trim) { | |
| String.prototype.trim = function () { | |
| return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); | |
| }; | |
| } |
| BC_CURRENT=`bitcoin-cli getblockcount 2>&1`; BC_HEIGHT=`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`; perl -E "say sprintf(’Block %s of %s (%.4f%%), %s blocks remaining.', $BC_CURRENT, $BC_HEIGHT, ($BC_CURRENT/$BC_HEIGHT)*100, $BC_HEIGHT-$BC_CURRENT)"; |
| field5.add(Validate.Custom, { | |
| against: function(value) { | |
| return !value.match(/(\S:\/\/\S|\D\.\D|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|\d\.\D)/); | |
| }, | |
| failureMessage: "Value must not contain any URL's" | |
| }); |
| <?php | |
| add_filter( 'get_the_excerpt', 'my_get_the_excerpt' ); | |
| function my_get_the_excerpt( $excerpt ) { | |
| if ( 'nooz_coverage' == get_post_type() ) { | |
| $excerpt .= ' — View more coverage at <a href="http://example.com">http://example.com</a>.'; | |
| } | |
| return $excerpt; | |
| } |
| <?php if ( $data['items'] ) { ?> | |
| <div> | |
| <ul> | |
| <?php foreach( $data['items'] as $item ) { ?> | |
| <li> | |
| <time datetime="<?php echo $item['post_date']; ?>"><?php echo $item['post_date_formatted']; ?></time> | |
| <h2> | |
| <a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a> | |
| </h2> | |
| <p><?php echo $item['source']; ?></p> |
| <?php | |
| function my_custom_template( $output, $data ) { | |
| // loop $data['items'], use post ID, to get additional meta data if needed | |
| // ... | |
| // filter by type to output different templates | |
| if ( 'coverage' == $data['type'] ) { | |
| ob_start(); | |
| // $data variable is available inside PHP file |
| // ---- | |
| // Sass (v3.4.6) | |
| // Compass (v1.0.1) | |
| // ---- | |
| @mixin size($size) { | |
| $height: nth($size, 1); | |
| $width: $height; | |
| @if length($size) > 1 { | |
| $height: nth($size, 2); |
| isPositionFixed = function (selector, traverseAncestors) { | |
| var el = $(selector); | |
| if (el.length) { | |
| if (!traverseAncestors) { | |
| return 'fixed' === el.css('position') ? true : false ; | |
| } | |
| var isFixed = false; | |
| var els = el.add(el.parents()); | |
| els.each(function() { | |
| if ('fixed' === $(this).css('position')) { |
| jQuery(function($){ | |
| var picker_config = { | |
| onSubmit: function(hsb, hex, rgb, el) { | |
| $(el).val(hex); | |
| $(el).ColorPickerHide(); | |
| }, | |
| onBeforeShow: function () { | |
| $(this).ColorPickerSetColor(this.value); | |
| }, | |
| onChange: function (hsb, hex, rgb) { |