Skip to content

Instantly share code, notes, and snippets.

View shellprog's full-sized avatar
🏠
Working from home

Md Imran shellprog

🏠
Working from home
View GitHub Profile
@shellprog
shellprog / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-tooltip/core-tooltip.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
@shellprog
shellprog / HTML or Laravel Countries Select
Created October 20, 2014 18:27
It just waste my time when i see small thing costing me so much . Use it and get rid of this large list
<select name="country" class="form-control">
<option {{Input::old('country',$profile->country)=="Afghanistan"?"selected":""}} value="Afghanistan">Afghanistan</option>
<option {{Input::old('country',$profile->country)=="Albania"?"selected":""}} value="Albania">Albania</option>
<option {{Input::old('country',$profile->country)=="Algeria"?"selected":""}} value="Algeria">Algeria</option>
<option {{Input::old('country',$profile->country)=="American Samoa"?"selected":""}} value="American Samoa">American Samoa</option>
<option {{Input::old('country',$profile->country)=="Andorra"?"selected":""}} value="Andorra">Andorra</option>
<option {{Input::old('country',$profile->country)=="Angola"?"selected":""}} value="Angola">Angola</option>
<option {{Input::old('country',$profile->country)=="Anguilla"?"selected":""}} value="Anguilla">Anguilla</option>
<option {{Input::old('countr
@shellprog
shellprog / Blade Extend
Created July 10, 2014 19:27
Blade Extend
Blade::extend(function ($view) {
$pattern = Blade::createOpenMatcher('cache');
$replace = "<?php echo PageCache::cache$2 { ?>";
$view = preg_replace($pattern, $replace, $view);
// Replace closing tag
$view = str_replace('@endcache', '<?php }); ?>', $view);
return $view;