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 data.[Year], p.FirstName + ' ' + p.LastName, data.Amount FROM | |
( | |
SELECT DATEPART(Year, OrderDate) as [Year], SalesPersonID, SUM(subtotal) as Amount FROM | |
Sales.SalesOrderHeader | |
WHERE OnlineOrderFlag = 0 | |
GROUP BY DATEPART(Year, OrderDate), SalesPersonID | |
) data | |
INNER JOIN Person.Person as [p] ON data.SalesPersonID = p.BusinessEntityID | |
ORDER BY [Year], Amount DESC |
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
var salesPeople = | |
Person | |
.Select(x => new { Name = x.FirstName + " " + x.LastName, x.BusinessEntityID }); | |
SalesOrderHeader | |
.Where(x => x.OnlineOrderFlag == false) | |
.GroupBy(x => new { x.OrderDate.Year, x.SalesPersonID }) | |
.Select(x => new { | |
Key = x.Key, | |
Sales = x.Sum(y => y.SubTotal) |
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
{ | |
"metadata": { | |
"name": "DnD" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
{ | |
"metadata": { | |
"name": "DnD" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
class test(object): | |
def __init__(self): | |
self.x = 23 |
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 | |
/* | |
$pages is an array of assoc arrays containing all of the menu items | |
$id is the page to be moved | |
$matches[2] is the direction | |
*/ | |
$len = count($pages); | |
for ($i=0; $i < $len; $i++) | |
{ |
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
#include <iostream> | |
int f(int num) | |
{ | |
if(num > 0) | |
return 0 - num; | |
else | |
return num; | |
} |
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 function get_tags() | |
{ | |
$this->theme->wsse = Utils::WSSE(); | |
$this->theme->tags = Tags::vocabulary()->get_tree( 'term_display asc' ); | |
$this->theme->max = Tags::vocabulary()->max_count(); | |
for( $i = 0; $i < count($this->theme->tags); $i++ ) | |
{ | |
if( $this->theme->tags[$i]->term_display == "" ) |
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
<!-- begin freedns banner code --> | |
<div style="width:468px;margin:0 auto;"> | |
<form onclick="window.open(this.href); return false;" action="http://freedns.afraid.org/subdomain/edit.php"> | |
<table style="border-style=solid;border-width=1;border-color=black;width:468px;height:60px;background-color:#ccc"><tr><td align="center"> | |
<table border="0" cellpadding="2" cellspacing="0"> | |
<tr><td align="center" colspan="3"><div style="font-family: Verdana, Helvetica;font-size: 13px;color: black;hover: orange;"><a onclick="window.open(this.href); return false;" style="font-family: Verdana, Helvetica;font-size: 13px;color: black;hover: orange;" href="http://freedns.afraid.org/">Free DNS</a> provides easy shared DNS hosting & URL forwarding</div></td></tr> | |
<tr> | |
<td align="center" valign="middle"><input type="text" size="15" name="subdomain" value="yourname" /></td> |
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
$test = new DOTMailer() |
NewerOlder