Skip to content

Instantly share code, notes, and snippets.

@shellus
shellus / replace_img_src_callback.php
Created August 27, 2017 13:35
replace img src attributes in a html string
<?php
/**
* Created by PhpStorm.
* User: shellus
* Date: 2017-08-27
* Time: 20:56
*/
/**
* replace img src attributes in a html string
$('form[target=ajax]').live('submit', function(){
var data = [],
$this = $(this),
self = this,
onajax = window[$this.attr('onajax')],
call = window[$this.attr('call')];
if(typeof call!='function'){
call=function(){}
}
package main
import (
"github.com/PuerkitoBio/goquery"
"fmt"
"path"
"net/http"
"os"
"io"
"path/filepath"
@shellus
shellus / ngrok.yaml
Created April 18, 2017 10:41
ngrok client configure file usage:-config ngrok.yaml
server_addr: you-ngrok-server-domain:4443
auth_token: you-authtoken
tunnels:
you-subdomain:
proto:
http: "80"
@shellus
shellus / index.php
Created November 15, 2016 12:51
Laravel-framework Cross-domain code
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <[email protected]>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader