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
// Generated by CoffeeScript 1.3.3 | |
(function() { | |
var Instafeed, root; | |
Instafeed = (function() { | |
function Instafeed(params, context) { | |
var option, value; | |
this.options = { | |
target: 'instafeed', |
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
if has('unix') | |
set backupdir=~/.vim/backup | |
set backupskip=/tmp/*,/private/tmp/* | |
set directory=~/.vim/tmp | |
set undodir=~/.vim/undodir | |
elseif has('win32') | |
set backupdir=$HOME/AppData/Local/backup | |
set directory=$HOME/AppData/Local/tmp | |
set undodir=$HOME/AppData/Local/undo | |
endif |
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
function eventSourceTest() { | |
header("Content-Type: text/event-stream\n\n"); | |
$counter = rand(1, 10); | |
echo "Bajs $counter eaaa"; | |
while (1) { | |
// Every second, sent a "ping" event. | |
echo "event: ping\n"; | |
$curDate = @date(DATE_ISO8601); |
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"?> | |
<catalog> | |
<book id="bk101"> | |
<author>Gambardella, Matthew</author> | |
<title>XML Developer's Guide</title> | |
<genre>Computer</genre> | |
<price>44.95</price> | |
<publish_date>2000-10-01</publish_date> | |
<description>An in-depth look at creating applications with XML.</description> | |
</book> |
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
// automatically generated by rust-bindgen | |
pub type ChakraCookie = usize; | |
pub type ChakraBytePtr = *mut libc::c_uchar; | |
pub type BYTE = libc::c_uchar; | |
pub type byte = BYTE; | |
#[repr(u32)] | |
/// <summary> | |
/// An error code returned from a Chakra hosting API. | |
/// </summary> |
This file has been truncated, but you can view the full file.
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
/* GIMP header image file format (RGB): /Users/atomen/Downloads/background-1060405_640.h */ | |
static unsigned int width = 640; | |
static unsigned int height = 480; | |
/* Call this macro repeatedly. After each use, the pixel data can be extracted */ | |
#define HEADER_PIXEL(data,pixel) {\ | |
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \ | |
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \ |
This file has been truncated, but you can view the full file.
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
//{{BLOCK(background_1060405_640) | |
//====================================================================== | |
// | |
// background_1060405_640, 640x480@8, | |
// + 4800 tiles not compressed | |
// Total size: 307200 = 307200 | |
// | |
// Time-stamp: 2017-04-24, 15:12:43 |
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
u32 rle_decompress(u8** out, const u8* src) { | |
// Extract the size of the data | |
u32 originalSize = *((u32*) src) >> 8; | |
u8* originalDst = calloc(originalSize, 1); | |
// Advance past the header | |
src += sizeof(u32); | |
u8* dst = originalDst; | |
for(u32 size = originalSize; size > 0;) { |
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
import R from 'ramda'; | |
import attractions from '../assets/attractions.json'; | |
export default new Set(R.chain(R.prop('categories'), attractions)); |
OlderNewer