Skip to content

Instantly share code, notes, and snippets.

select * from sale where product_id = :product_id and
sale_date >= TO_DATE('03/30/2013 08:00', 'MM/DD/YYYY HH24:MI')
select * from sale where product_id=:product_id and
sale_date >= TO_DATE('03/30/2013 08:00', 'MM/DD/YYYY HH24:MI')
select * from sale where product_id = :product_id and
sysdate - :sale_date < 30
((?<=\s)|(?<=-)|(?<=\<)|(?<=\=)|(?<=\()):.+?(?=\b)
((?<=\s)|(?<=-)|(?<=\<)|(?<=\=)|(?<=\()):.+?(?=\b)
// Just do this : (and include backbone.js)
var Kind = function() {
this.initialize && this.initialize.apply(this, arguments);
};
Kind.extend = Backbone.Model.extend
//Simpler
var Thing = function() {};
Thing.extend = Backbone.Model.extend
@pragmaticlogic
pragmaticlogic / gist:7819916
Created December 6, 2013 07:29
Closure in C# - a
public class Program
{
private static Func<int>[] GetFunc()
{
int SIZE = 5;
Func<int>[] func = new Func<int>[SIZE];
for (int i = 0; i < SIZE; i++)
{
func[i] = () => i;
}
class Program
{
class MyFunc
{
public Func<int> func { get; set; }
public MyFunc(int i)
{
func = () => i;
}
class Program
{
private static Func<int>[] GetFunc()
{
int SIZE = 5;
Func<int>[] func = new Func<int>[SIZE];
for (int i = 0; i < SIZE; i++)
{
int j = i;
func[i] = () => j;
<!doctype html>
<html ng-app="plunker">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.js"></script>
<script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.10.0.js"></script>
<script src="angular-round-progress-directive.js"></script>
<script src="script.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
angular.module('plunker', ['ui.bootstrap', 'angular.directives-round-progress']);
var ModalDemoCtrl = function ($scope, $modal) {
$scope.launchModalTimer = function () {
var modalInstance = $modal.open({
templateUrl: 'modalContent.html',
controller: ModalInstanceCtrl
});
};
};