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
$ cp unsign /usr/local/bin |
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
$ cd Downloads/unsign-master | |
$ make | |
gcc -c -std=c99 -O2 -pedantic -Wall -Wextra -arch i386 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 unsign.c -o unsign.o | |
gcc -c -std=c99 -O2 -pedantic -Wall -Wextra -arch i386 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 endian.c -o endian.o | |
gcc -arch i386 -arch x86_64 unsign.o endian.o -o unsign |
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
$ cd Downloads/unsign-master | |
$ make | |
gcc -c -std=c99 -O2 -pedantic -Wall -Wextra -arch i386 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 unsign.c -o unsign.o | |
gcc -c -std=c99 -O2 -pedantic -Wall -Wextra -arch i386 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 endian.c -o endian.o | |
gcc -arch i386 -arch x86_64 unsign.o endian.o -o unsign |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>MouseButtonDivision</key> | |
<integer>55</integer> | |
<key>MouseButtonMode</key> | |
<string>TwoButton</string> | |
<key>MouseHorizontalScroll</key> | |
<true/> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>MouseButtonDivision</key> | |
<integer>55</integer> | |
<key>MouseButtonMode</key> | |
<string>TwoButton</string> | |
<key>MouseHorizontalScroll</key> | |
<true/> |
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
/** | |
* Calculates the left and right positions of each events. This comes handy specially if events | |
* are overlapping. | |
* | |
* @param eventRects The events along with their wrapper class. | |
*/ | |
private void computePositionOfEvents(List<EventRect> eventRects) { | |
// Make "collision groups" for all events that collide with others. | |
List<List<EventRect>> collisionGroups = new ArrayList<List<EventRect>>(); | |
for (EventRect eventRect : eventRects) { |
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
- (NSArray*)adjustLayoutForOverlappingCells:(NSArray*)attributes inSection:(NSUInteger)section | |
{ | |
const CGFloat kOverlapOffset = 4.; | |
// sort layout attributes by frame y-position | |
NSArray *adjustedAttributes = [attributes sortedArrayUsingComparator:^NSComparisonResult(MGCEventCellLayoutAttributes *att1, MGCEventCellLayoutAttributes *att2) { | |
if (att1.frame.origin.y > att2.frame.origin.y) { | |
return NSOrderedDescending; | |
} | |
else if (att1.frame.origin.y < att2.frame.origin.y) { |
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 | |
$url = "http://index.hu/tech/rss/default/"; | |
if (array_key_exists("url", $_GET)) { | |
if (strpos($_GET["url"], "http://") === 0) { | |
$url = $_GET["url"]; | |
} | |
} | |
$file = file_get_contents($url); |
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
{ | |
"aps": { | |
"alert": { | |
"body": "Dancing Banana 1", | |
"title": "Rich test 1" | |
}, | |
"data": { | |
"attachment-url": "https://cdn3.vox-cdn.com/thumbor/yFNG0EqI3jivnFWE1BX5_EMXb50=/44x0:951x605/1280x853/cdn0.vox-cdn.com/uploads/chorus_image/image/48780381/duck.0.png" | |
}, | |
"mutable-content": 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
Faszság! |