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
/** | |
* Clip image to hexagon | |
*/ | |
img { | |
max-width: 200px; | |
max-height: 200px; | |
} |
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
bacon: 10010000 | |
space: 00101010 | |
pong: 10000001 | |
simone: 11010011 | |
eightbit: 01010011 | |
song: 11011011 | |
synth: 10001000 | |
ascii: 01111111 | |
bowling: 01110101 | |
rocket: 01000101 |
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
000 | |
00100 | |
0010100 | |
space: 00101010 | |
00101011 | |
001011 | |
00110 | |
00111000 | |
burger: 00111001 | |
0011101 |
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
(function($) { | |
var originalXhr = $.ajaxSettings.xhr; | |
$.ajaxSetup({ | |
progress: $.noop, | |
xhr: function() { | |
var req = originalXhr(), that = this; | |
if (req) { | |
if (typeof req.addEventListener == "function") { | |
req.addEventListener("progress", function(evt) { | |
that.progress(evt); |
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
#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 |
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
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 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
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 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
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 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
+-------+ | |
| | | |
| | | |
| | | |
char * (*arr ) [ 2 ] | |
| | | | | |
| | | | | |
| +-+ | | |
+---------+ |