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
with mat1 as | |
( | |
SELECT DISTINCT | |
matl1.SubPartNo, | |
STUFF(( | |
SELECT ', ' + matl2.PartNo | |
FROM Materials as matl2 | |
WHERE matl2.SubPartNo = matl1.SubPartNo | |
FOR XML PATH('') | |
),1,1,'') as WhereUsed |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>Freed From The Real podcast</title> | |
<description>A podcast for and about Magic Online</description> | |
<link>http://puremtgo.com/articles/recent?uid=&title=freed+from+the+real</link> | |
<ttl>1800</ttl> | |
<item> | |
<title>Freed from the Real 414: Command Lowers Your Life Expectancy</title> |
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
SELECT * | |
FROM tableNm | |
WHERE circleNm IN ('test1', 'test2', 'test3') | |
-- is the same as | |
SELECT * | |
FROM tableNm | |
JOIN ( | |
VALUES( |
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
void Main() | |
{ | |
var myPets = new List<petInfo>(); | |
var yourpets = new List<petInfo>(); | |
myPets.Add(new petInfo("me", "dog","Rex")); | |
myPets.Add(new petInfo("me", "fish","Goldy")); | |
myPets.Add(new petInfo("me", "iguana","Spikey")); | |
yourpets.Add(new petInfo("you", "dog","Spot")); |
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
WITH XX_SQDC_LINES_REF (Line, Name, Site) AS | |
( | |
VALUES | |
(1 , 'Table ',1), | |
(2 , 'Lamp ',1), | |
(3 , 'Screen ',2), | |
(4 , 'Forcep ',2), | |
(5 , 'Brush ',2), | |
(6 , 'Camera2',2), | |
(7 , 'Screen2',2), |
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
+-------+ | |
| | | |
| | | |
| | | |
char * (*arr ) [ 2 ] | |
| | | | | |
| | | | | |
| +-+ | | |
+---------+ |
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
void Main() | |
{ | |
Person p1 = new Person(); | |
p1.Groups = new List<Group>(); | |
p1.Groups.Add(new Group { GroupType = GroupTypesEnum.a }); | |
p1.Groups.Add(new Group { GroupType = GroupTypesEnum.b }); | |
Message m1 = new Message(); | |
m1.Recipient = p1; | |
Person p2 = new Person(); |
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
void Main() | |
{ | |
List<Event_Day> Days = new List<Event_Day>(); | |
Days.Add(new Event_Day(420,120,1,new DateTime(2013,6,20))); | |
Days.Add(new Event_Day(421,120,2,new DateTime(2013,6,21))); | |
Days.Add(new Event_Day(422,120,3,new DateTime(2013,6,22))); | |
List<Event_Session> Sessions = new List<Event_Session>(); | |
Sessions.Add(new Event_Session(170,120,420)); | |
Sessions.Add(new Event_Session(171,120,420)); |
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
void Main() | |
{ | |
Dictionary<int,int> skillList = new Dictionary<int,int>(); | |
skillList.Add(1,1); | |
skillList.Add(2,2); | |
skillList.Add(3,1); | |
skillList.Add(4,1); | |
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
#first install the compiler | |
yum install gcc gcc-c++ autoconf automake | |
#install zlib-devel as it's a dependency | |
yum install zlib-devel | |
#then get and build git from source | |
cd /usr/lib | |
wget "https://git-core.googlecode.com/files/git-1.8.2.2.tar.gz" | |
tar xzvf git-1.8.2.2.tar.gz |