A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| $("body").append('<ul style="background: #000; border: 3px groove #ccc; color: #ccc; display: block; width: 99%; height: 60px; overflow: scroll; margin: 0 auto; position: fixed; bottom: 0;" id="EL-console"></ul>'); | |
| function htmlEncode(value){ | |
| return $('<ul/>').text(value).html(); | |
| } | |
| var former = console.log; | |
| console.log = function(msg){ | |
| former(msg); |
| <input type="text" maxlength="512" id="searchTxt" class="searchField"/> | |
| <input type="button" value="Get Value" onclick="cut(searchTxt.value)"> | |
| <script> | |
| function cut(myurl){ | |
| $.ajax({ | |
| url:"https://api.shorte.st/v1/data/url", | |
| type:"put", | |
| async:true, | |
| crossDomain:true, |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
/*
Made by [egyJs.com](https://www.instagram.com/egyjs/);
*/
install it on your localhost and try it :
| <?php | |
| function getImgFromString($html){ | |
| preg_match_all('/<img[^>]+>/i',$html, $result); | |
| $img = array(); | |
| $i = 0; | |
| foreach( $result[0] as $img_tag) | |
| { | |
| preg_match_all('/(src)="([^"]+)"/i',$img_tag, $img[$i]); | |
| $i++; |
you can find it in this link : https://github.com/el3zahaby/lorem.JS
| <?php | |
| /** | |
| * ----------------------------------------------------------------------------------------- | |
| * Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
| * ----------------------------------------------------------------------------------------- | |
| */ | |
| // HTML Minifier | |
| function minify_html($input) { |
| www | |
| ftp | |
| localhost | |
| webmail | |
| smtp | |
| pop | |
| ns1 | |
| webdisk | |
| ns2 |
| function ElzahabyDynamicLaravelString($model,$syntax,$sign=null){ | |
| if (isset($model) && $syntax == null){ | |
| $input = $model::getListFields()['syntax']; | |
| }else { | |
| $input = $syntax; | |
| } | |
| $output = $input; | |
| $regex = '/'.(($sign != null)?$sign:':-:').'[a-z._]+/im'; | |
| if (preg_match_all($regex, $input, $matches, PREG_PATTERN_ORDER)) { |
| DB::table('data_location_country')->delete(); | |
| $data = array( | |
| ['slug' => 'AF', 'title' => 'Afghanistan', 'native' => 'غانستان'], | |
| ['slug' => 'AX', 'title' => 'Åland Islands', 'native' => 'Åland'], | |
| ['slug' => 'AL', 'title' => 'Albania', 'native' => 'Shqipëri'], | |
| ['slug' => 'DZ', 'title' => 'Algeria', 'native' => 'الجزائر'], | |
| ['slug' => 'AS', 'title' => 'American Samoa', 'native' => ''], | |
| ['slug' => 'AD', 'title' => 'Andorra', 'native' => ''], | |
| ['slug' => 'AO', 'title' => 'Angola', 'native' => ''], | |
| ['slug' => 'AI', 'title' => 'Anguilla', 'native' => ''], |