This file contains hidden or 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 encrypt(text){ | |
| var cipher = crypto.createCipher('aes-256-cbc','d6F3Efeq') | |
| var crypted = cipher.update(text,'utf8','hex') | |
| crypted += cipher.final('hex'); | |
| return crypted; | |
| } | |
| function decrypt(text){ | |
| var decipher = crypto.createDecipher('aes-256-cbc','d6F3Efeq') | |
| var dec = decipher.update(text,'hex','utf8') |
This file contains hidden or 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 | |
| /** | |
| * Excludes users from BuddyPress Members list. | |
| * | |
| * @param string $qs Query string. | |
| * @param string $object object loop identikfier. | |
| * | |
| * @return string | |
| */ | |
| function bpdev_exclude_users( $qs = false, $object = false ) { |
This file contains hidden or 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 | |
| /* | |
| * Created on 05-Jul-2006 | |
| * rob.s.smart@gmail.com | |
| * Translator class calls external machine translation component | |
| */ | |
| class Phonetics | |
| { |
This file contains hidden or 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
| app.filter('bytes', function() { | |
| return function(bytes, precision) { | |
| if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
| if (typeof precision === 'undefined') precision = 1; | |
| var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
| number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
| return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
| } | |
| }); |
This file contains hidden or 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 | |
| /* | |
| * This is a PayPal IPN (Instant Payment Notification) broadcaster | |
| * Since PayPal does not provide any straightforward way to add | |
| * multiple IPN listeners we'll have to create a central IPN | |
| * listener that will broadcast (or filter and dispatch) Instant | |
| * Payment Notifications to different destinations (IPN listeners) | |
| * | |
| * http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ | |
| * |
This file contains hidden or 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
| /* | |
| * Add custom user profile information | |
| * | |
| */ | |
| add_action( 'show_user_profile', 'my_show_extra_profile_fields' ); | |
| add_action( 'edit_user_profile', 'my_show_extra_profile_fields' ); | |
| function my_show_extra_profile_fields( $user ) { ?> |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta name="description" content="Webpage description goes here" /> | |
| <meta charset="utf-8"> | |
| <title>Change_me</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="author" content=""> | |
| <link rel="stylesheet" href="css/style.css"> |
This file contains hidden or 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
| angular.module('app').filter('humanizeConstant', function(){ | |
| return function(text) { | |
| if(text) { | |
| var string = text.split("_").join(" ").toLowerCase(); | |
| var string = string.charAt(0).toUpperCase() + string.slice(1); | |
| return string | |
| }; | |
| }; | |
| }); |
This file contains hidden or 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
| .myBounceDiv { | |
| -moz-animation:bounce .40s linear; | |
| -webkit-animation:bounce .40s linear; | |
| } | |
| @-moz-keyframes bounce { | |
| 0%{ -moz-transform:scale(0); opacity:0;} | |
| 50%{ -moz-transform:scale(1.3); opacity:0.4; } | |
| 75%{ -moz-transform:scale(0.9); opacity:0.7;} | |
| 100%{ -moz-transform:scale(1); opacity:1;} |
This file contains hidden or 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
| var myApp = angular.module('myApp', []); | |
| myApp.directive('googleplace', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, model) { | |
| var options = { | |
| types: [], | |
| componentRestrictions: {} | |
| }; |
OlderNewer