Enviar mensaje de texto por whatsapp
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 | |
/* | |
// BASIC EXAMPLE (INSPIRATION) | |
// comando usado en LINUX con imagemagick instalado | |
// convert sansung.png -thumbnail 500x500 -background black -gravity center -extent 500x500 end.jpg | |
header('Content-type: image/jpeg'); | |
$image = new Imagick('image.jpg'); |
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
#!/bin/bash | |
ult_comt=$1; | |
pri_comt=$2; | |
dir_local=$3; | |
dir_remot=$4; | |
if [ $# -lt 4 ]; then | |
echo "use: <ult-cod-commit> <pri-cod-commit> <dir_local> <dir_remot>"; |
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 | |
public function ajax_paymentfitnes() { | |
global $current_user; | |
get_currentuserinfo(); | |
// Check parameters | |
$message = isset( $_POST['card_token'] ) ? $_POST['card_token'] : false; | |
$dataPOST = $_POST; | |
$culqui_customer_id = get_the_author_meta( 'culqui_customer_id', $current_user->ID ); |
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
def insertarAlInicio(nuevoValor) | |
nuevoNodo = [nuevoValor, nil] # crear un nodo nuevo | |
# crear NODO | |
if @inicio == nil | |
@inicio = nuevoNodo | |
else | |
nuevoNodo[1] = @inicio | |
@inicio = nuevoNodo |
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
def printt() | |
a = [nil, 3, nil] | |
b = [nil, 5, nil] | |
c = [nil, 10, nil] | |
nuevo = [nil, 50, nil] # crear un nodo nuevo | |
a[2] = b | |
b[0] = a | |
b[2] = c | |
c[0] = b |
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 | |
use Zend\Db\Sql\Select; | |
// basic table | |
$select0 = new Select; | |
$select0->from('foo'); | |
// 'SELECT "foo".* FROM "foo"'; | |
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
FROM phusion/baseimage:0.9.15 | |
MAINTAINER picodotdev <pico.dev@gmail.com> | |
ENV HOME /root | |
RUN apt-get update -q | |
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh | |
RUN echo 'root:$6$l/PahbyY$jFhqIAuvHeK/GwjfT71p4OBBkHQpnTe2FErcUWZ8GIN1ykdI7CgL05Jkk7MYW6l.0pijAlfoifkQnLpaldEJY0' | chpasswd -e |