This file contains hidden or 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
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Collections.Generic; | |
public static class PredicateBuilder | |
{ | |
public static Expression<Func<T, bool>> True<T> () { return f => true; } | |
public static Expression<Func<T, bool>> False<T> () { return f => false; } | |
This file contains hidden or 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
select schema_name(t.schema_id) + '.' + | |
t.name as table_name, | |
t.create_date, | |
t.modify_date | |
from sys.tables t | |
where t.name IN ( | |
'ABC' | |
) | |
order by table_name; |
This file contains hidden or 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 | |
namespace App\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
class recaptcha2 implements Rule | |
{ | |
/** | |
* Create a new rule instance. |
This file contains hidden or 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
dir . -r | % { if ($_.Name -cne $_.Name.ToLower()) { ren $_.FullName $_.Name.ToLower() } } |
This file contains hidden or 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 get_curl_instance($url, $headers, $fields = null, $is_post = false) { | |
$curl = curl_init($url); | |
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ); | |
curl_setopt( $curl, CURLOPT_HEADER, true ); | |
curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false ); | |
curl_setopt( $curl, CURLOPT_HTTPHEADER, $headers ); | |
if ( $fields ) | |
curl_setopt( $curl, CURL_POSTFIELDS, $fields ); |
This file contains hidden or 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
.parent-of-rows { | |
display: grid; | |
grid-template-rows: auto 1fr auto; /* 1fr fill height row of 3 cols */ | |
} |
This file contains hidden or 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
.parent-of-columns { | |
display: grid; | |
grid-template-columns: minmax(200px, 25%) 1fr; /* 1fr for second col */ | |
} |
This file contains hidden or 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
.parent-of-blocks { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: center; | |
} | |
.item-as-block { | |
flex: 1 1 200px; /* Stretching box */ | |
flex: 0 1 200px; /* No stretching box */ | |
margin: 15px; |
This file contains hidden or 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
.parent-of-centered { | |
display: grid; | |
place-items: center; | |
} |
This file contains hidden or 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
for file in $(git ls-files --others --exclude-standard --modified); do mkdir -p d://BACKUP/unstageds/$(dirname $file) ; cp $file d://BACKUP/unstageds/$file ; done |