This file contains 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 class GinxCultureHelper : IDisposable | |
{ | |
private readonly CultureInfo _currentUiCulture; | |
private readonly CultureInfo _currentCulture; | |
public GinxCultureHelper(string cultureName) | |
{ | |
_currentCulture = Thread.CurrentThread.CurrentCulture; | |
_currentUiCulture = Thread.CurrentThread.CurrentUICulture; |
This file contains 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
DECLARE | |
@collation_from VARCHAR(100), | |
@collation_to VARCHAR(100); | |
-- Define the collations here | |
SET @collation_from = 'SQL_Latin1_General_CP1_CI_AS' | |
SET @collation_to = 'Latin1_General_CI_AS' | |
This file contains 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
DECLARE @sql NVARCHAR(4000) | |
DECLARE @tableName VARCHAR(255); | |
CREATE TABLE #DatabaseTables (TableName VARCHAR (255), RecordCount INT); | |
DECLARE tables_cursor CURSOR FOR | |
SELECT name FROM sysobjects WHERE xtype = 'U' ORDER BY name | |
OPEN tables_cursor |
This file contains 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
namespace LocalDBSample | |
{ | |
using System; | |
using System.Data.SqlClient; | |
using System.IO; | |
using System.Reflection; | |
public class LocalDBHelper | |
{ | |
public static string DataDirectory |
This file contains 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 partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
const int GWL_EXSTYLE = -20; | |
const int WS_EX_TRANSPARENT = 0x20; |
This file contains 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
CREATE TABLE [dbo].[AccountBalanceByDate] | |
( | |
[Id] int NOT NULL, | |
[AccountId] int NOT NULL, | |
[Date] [datetime] NOT NULL, | |
[Balance] [decimal](19, 5) NOT NULL, | |
PRIMARY KEY CLUSTERED | |
( | |
[Id] ASC |
This file contains 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.Collections.Generic; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace EFSample | |
{ | |
public class AccountBalanceByDate |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import httplib | |
import re | |
import sys | |
import base64 | |
import subprocess | |
import urllib | |
import lxml.etree |
This file contains 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
var focused = false, | |
focusedTimeout, | |
lastDate; | |
function anim() { | |
clearTimeout(focusedTimeout); | |
focused=true; | |
if (!lastDate) { | |
lastDate = new Date(); |
This file contains 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
(function () { | |
var d = time(), frames = 0; | |
function time() { | |
return parseInt(new Date() / 1000); | |
} | |
function fpsCounter() { | |
if (d != time()) { | |
console.log(frames + ' fps'); |
OlderNewer