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 name, case FULLTEXTCATALOGPROPERTY(name, 'PopulateStatus') | |
when 0 then 'Idle' | |
when 1 then ' Full population in progress' | |
when 2 then ' Paused' | |
when 3 then ' Throttled' | |
when 4 then ' Recovering' | |
when 5 then ' Shutdown' | |
when 6 then ' Incremental population in progress' | |
when 7 then ' Building index' | |
when 8 then ' Disk is full. Paused.' |
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
public void RunInSql(Action<IDbConnection, IDbTransaction> action) | |
{ | |
using (var connection = session.Connection) | |
{ | |
using (var transaction = GetTransaction(session)) | |
{ | |
try | |
{ | |
action(connection, transaction); | |
transaction.Commit(); |
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
[{ | |
"title": "First Block", | |
"images": [ | |
"https://1.img-dpreview.com/files/p/TS1200x900~sample_galleries/4783759740/0935322774.jpg" | |
, "https://3.img-dpreview.com/files/p/TS1200x900~sample_galleries/4783759740/7732391852.jpg" | |
, "https://1.img-dpreview.com/files/p/TS1200x900~sample_galleries/4783759740/6412900034.jpg" | |
] | |
}, | |
{ | |
"title": "Second Block", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Backbone JS Demo" /> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script> | |
<meta charset=utf-8 /> | |
<title>Backbone DEMO</title> |
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
void Main() | |
{ | |
var add4To = AddNumber(4); | |
var newNumber = add4To(3); | |
Console.WriteLine(newNumber); | |
// prints 7 | |
} | |
public Func<int, int> AddNumber(int n) | |
{ |
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
public static bool PdfContains(byte[] pdfcontent, string text) | |
{ | |
using (var pdfReader = new PdfReader(pdfcontent)) | |
{ | |
for (int page = 1; page <= pdfReader.NumberOfPages; page++) | |
{ | |
var strategy = new SimpleTextExtractionStrategy(); | |
string currentText = PdfTextExtractor.GetTextFromPage( | |
pdfReader, page, strategy); | |
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
*.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo __pycache__ *.rej *~ #*# .#* .*.swp .DS_Store Packages packages bin obj *.suo *.user |
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 | |
t.NAME AS TableName, | |
s.Name AS SchemaName, | |
p.rows AS RowCounts, | |
SUM(a.total_pages) * 8 AS TotalSpaceKB, | |
SUM(a.used_pages) * 8 AS UsedSpaceKB, | |
(SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB | |
FROM | |
sys.tables t | |
INNER JOIN |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="js/lib/jquery.js"></script> | |
<script type="text/javascript" src="js/lib/underscore-min.js"></script> | |
<script type="text/javascript" src="js/lib/backbone.js"></script> | |
<script type="text/javascript" src="js/lib/backbone.marionette.js"></script> | |
<script type="text/javascript" src="js/lib/handlebars.js"></script> | |
<script type="text/javascript" src="js/widget.js"></script> | |
<title>testing widget</title> |
NewerOlder