text 混帐

混帐

git
git init
git add .
git commit -m "First commit"

git remote add origin <remote repository URL>

Sets the new remote
git remote -v

Verifies the new remote URL
git push -u origin master

text gistfile1.txt

gistfile1.txt
<?php
date_default_timezone_set('America/Los_Angeles');
error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set('memory_limit', '50056M');

$year = '2017';
$import_json = file_get_contents($year . '.json');
$patents = json_decode($import_json);
$patent_count = 1;
foreach($patents->PatentBulkData as $patent)
	{

	$dir = "/var/www/html/working/patent-review/" . $year;
	if (!is_dir($dir)) 
		{
	    mkdir($dir);         
		}

	$patent_json = json_encode($patent);
	
	$meta_data = $patent->patentRecordBag->patentRecord[0]->patentCaseMetadata;

	$application_number = $meta_data->applicationNumberText->value;
	echo "<p><strong>application_number: " . $application_number . "</strong></p>";

	$write_file = $dir . "/" . replace("/","-",$application_number) . ".json";

	$myfile = fopen($write_file, "w") or die("Unable to open file!");
	fwrite($myfile, $patent_json);
	fclose($myfile);

	$patent_count++;
	}

?>

text whatsapp api

whatsapp api

whatsapp-api
https://api.whatsapp.com/send?phone=5551996113637

text ACF表格前端短代码插件

ACF表格前端短代码插件

gistfile1.txt
<?php
/*
Plugin Name: ACF Front End Forms
Plugin URI: https://navarrojr.com
Description: Create forms on the front end of the site from ACF field groups. 
Version: 0.0.1
Author: Dave Navarro, Jr.
Author URI: https://navarrojr.com
*/

//* Add required acf_form_head() function to head of page
function am_do_acf_form_head() {
	if ( !is_admin() )
    acf_form_head();
}
add_action( 'get_header', 'am_do_acf_form_head', 1 );

//* Add custom body class to the head
function am_acf_form_class( $classes ) {
	$classes[] = 'acf-form-front';
	return $classes;
}
add_filter( 'body_class', 'am_acf_form_class' );

//* ACF Form Short Code
function am_sc_acf_form( $attr ) {
  
  $cpt     = $attr['cpt'];
  $post_id = $_GET['postid'];
  $title   = ( $attr['title'] == 1 ) || ( $attr['title'] == 'y' ) || ( $attr['title'] == 'yes' );
  $content = ( $attr['content'] == 1 ) || ( $attr['content'] == 'y' ) || ( $attr['content'] == 'yes' );
  $submit  = 'submit';
  
  if ( empty( $post_id ) ) {
    $post_id = 'new_post';
  } else {
    $submit = 'update';
  }
  
  $options = array( 'id' => 'acf_form',
                    'post_id' => $post_id,
                    'label_placement' => 'top',
                    'instruction_placement' => 'field',
                    'new_post' => array( 'post_type' => $cpt, 'post_status' => 'publish'),
                    'submit_value' => $submit,
                    'updated_message' => __( 'Client Updated', 'acf' ),
                    'post_title' => $title,
                    'post_content' => $content,
                    'return' => '%post_url%',
                   );
  
  ob_start();
  acf_form( $options );
  $ret = ob_get_contents();
  ob_end_clean();
  
  return $ret;
  
}
add_shortcode( 'do_acf_form', 'am_sc_acf_form' );

text 禁用某些路由的CSRF

csrf_disable

https://laracasts.com/discuss/channels/laravel/disabling-csrf-for-a-specific-route-in-laravel-5

1) Open App/Http/Middleware/VerifyCsrfToken.php

2) add the routes that are needed

    protected $except = [
        'contact/send',
        'someother/route'
    ];




















text Enojado

Dichoscuandososáenojad@

Jabon
Que te pasó... te encontraste pelitos en el jabón?

text 文件版本

functions
wp_enqueue_script( 'google_maps', get_stylesheet_directory_uri() . '/js/gmaps.js', array('jquery'), filemtime(dirname(__FILE__) . '/js/gmaps.js'), true );

text 结束(键盘艺术)

结束(键盘艺术)

gistfile1.txt
                print("                 _")
                print("   ___ _ __   __| |")
                print("  / _ \\ '_ \\ / _` |")
                print(" |  __/ | | | (_| |")
                print("  \\___|_| |_|\\__,_|")

text 示例HubL模块

https://designers.hubspot.com/docs/hubl/intro-to-hubl

Example HubL Module
{% text "simple_section_title" label='Enter text for this section title', value='This is a section title' %}

text iPhone媒体查询

iphone-media-queries
/* ----------- iPhone 4 and 4S ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
}

/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {

}

/* ----------- iPhone 5, 5S, 5C and 5SE ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
}

/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {

}

/* ----------- iPhone 6, 6S, 7 and 8 ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) { 

}

/* Portrait */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) { 

}

/* Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 

}

/* ----------- iPhone 6+, 7+ and 8+ ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3) { 

}

/* Portrait */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: portrait) { 

}

/* Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) { 

}

/* ----------- iPhone X ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 3) { 

}

/* Portrait */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: portrait) { 

}

/* Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) { 

}