Skip to content

Instantly share code, notes, and snippets.

import 'loaders.css/loaders.css';
import './index.scss';
import React, { PropTypes } from 'react';
const LoadingIndicator = React.createClass({
propTypes: {
children: PropTypes.func.isRequired,
isLoading: PropTypes.bool.isRequired
},
render: function() {
@luisrudge
luisrudge / Windows10-Setup.ps1
Created January 6, 2016 16:01 — forked from NickCraver/Windows10-Setup.ps1
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@luisrudge
luisrudge / app.js
Created December 18, 2012 17:13 — forked from anonymous/app.js
/// <reference path="../ts/sammyjs-0.7.d.ts" />
/// <reference path="../ts/jquery-1.8.d.ts" />
/// <reference path="../ts/knockout-2.2.d.ts" />
/// <reference path="bootstrapper.ts" />
module dashboard {
export class queryParameters {
constructor (campaignId: string, interval: string, date?: Date, from?: Date, to?: Date) {
this.campaignId = campaignId;
this.interval = interval;
public interface IDomainEntity
{
object Id { get; set; }
}
public interface IRepository<T> : IDisposable where T : IDomainEntity
{
IQueryable<T> GetAll();
IQueryable<T> Query(string sql, params object[] args);
IQueryable<T> PagedQuery(long pageNumber, long pageSize, string sql, params object[] args);