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
| #!/usr/bin/env python | |
| # DICEWARE WORD LIST FROM: | |
| # http://world.std.com/~reinhold/diceware.html | |
| lines = """11111 a | |
| 11112 a&p | |
| 11113 a's | |
| 11114 aa | |
| 11115 aaa |
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
| # -*- coding: utf-8 -*- | |
| from numpy import * | |
| from numpy.random import * | |
| from numpy.fft import * | |
| from pylab import * | |
| N = 2**9 # FFT works better with signals whose length is power of 2 | |
| T = 10 # Length of time interval | |
| t = linspace(0,T,N) |
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
| import bpy | |
| import numpy as np | |
| name = bpy.context.selected_objects[0].name | |
| mon = np.array([i.co[:] for i in bpy.data.objects[name].data.vertices]) | |
| nor = np.linalg.norm(mon,axis=1) | |
| out = mon/nor.reshape(len(nor),1) | |
| for i,k in enumerate(bpy.data.objects[name].data.vertices): | |
| k.co[:] = out[i] |
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
| mails = dict() | |
| for line in open( raw_input("Enter File Name:")): | |
| words = line.strip().split() | |
| if len(words) == 0 and len(words)<2: | |
| continue | |
| if words[0] == 'From': | |
| hours = words[5].split(':') | |
| if hours[0] not in mails: | |
| mails[hours[0]] = 1 | |
| else: |
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
| #!/bin/bash | |
| ######################################################################## | |
| #### Script Name: inxi | |
| #### version: 1.8.11 | |
| #### Date: June 26 2012 | |
| #### Patch Number: 00 | |
| ######################################################################## | |
| #### SPECIAL THANKS | |
| ######################################################################## | |
| #### Special thanks to all those in #lsc and #smxi for their tireless |
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 | |
| /** | |
| * Plugin Name: another plugin | |
| * Plugin URI: http://www.jackreichert.com/2015/07/02/how-to-jsonp-ajax-to-ssl-in-wordpress-an-easier-way/ | |
| * Description: An example of how you might use wp_jsonp. | |
| * Version: 0.1 | |
| * Author: jackreichert | |
| * Author URI: http://www.jackreichert.com/ | |
| * License: GPL3 |
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
| if (typeof wp_jsonp === 'undefined') | |
| var wp_jsonp = function (event, method, params, callbackFunc) { | |
| // data needed to send jsonp | |
| var data = { | |
| action: event, // wp ajax action | |
| ajaxSSLNonce: wp_jsonp_vars.wpAJAXNonce, // nonce | |
| method: method, // server has switch/case for processing | |
| params: params // data to be processed | |
| }; |
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
| jQuery(document).ready(function($){ | |
| 'use strict'; | |
| var ajaxLogin = function() { | |
| var SELF = this; | |
| SELF.data = {'security': tm.security}; | |
| SELF.init = function(id) { | |
| SELF.$loginContainer = $(id); |
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
| /*************************** | |
| INSIDE FUNCTIONS.PHP | |
| ****************************/ | |
| /** | |
| * Formulario de registro | |
| */ | |
| //change register url for our custom one | |
| add_filter('register_url', function(){ return site_url('registrese');}); |
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 //Add all of this tu custom page template ?> | |
| <?php | |
| global $wpdb; | |
| $error = ''; | |
| $success = ''; | |
| // check if we're in reset form | |
| if( isset( $_POST['action'] ) && 'reset' == $_POST['action'] ) | |
| { |