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
/* | |
* Copyright 2013 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
#!/usr/bin/env python | |
print "Content-Type: text/xml" | |
# To use this script, put it on your host supporting python 2.x, in the cgi-bin | |
# directory. Then test with your browser something like | |
# https://your.host.com/cgi-bin/tumblr-gdpr-cgi-bin-proxy?u=hematocritico.tumblr.com/rss | |
# Hopefully that works and you get some rss xml. | |
import cgi |
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
<!DOCTYPE html> | |
<!-- | |
.o .o88 .o88 | |
.88 "888 "888 | |
o8888oo ooo oooo ooo. .oo. .oo. 888oooo. 888 oooo d8b | |
""888"" 888 "888 "888P"Y88bP"Y88b d88' `88b 888 "888""8P | |
888 888 888 888 888 888 888 888 888 888 | |
888 . 888 888 888 888 888 888. 888 888 888 .o. | |
"888Y `V88V"V8P' o888o o888o o888o 88`bod8P' o888o d888b Y8P |
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
#!/bin/sh | |
# Set errors to bail out. | |
set -e | |
# Display commands | |
#set -v | |
BASE_DIR=~/shelltest_dropbox_filename_sanitizer | |
TEST_DIR="${BASE_DIR}/1398956253" | |
NIM_DIR="${TEST_DIR}/compiler" | |
NIM_BIN="${NIM_DIR}/bin/nimrod" |
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
#!/bin/bash | |
sudo add-apt-repository ppa:chris-lea/libsodium; | |
sudo echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list; | |
sudo echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list; | |
sudo apt-get update && sudo apt-get install libsodium-dev; |
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
#!/bin/sh | |
PATH_TO_NIMROD=~/project/nimrod/root/bin/nim | |
PATH_TO_NIMBASE=~/project/nimrod/root/lib/nimbase.h | |
DEST_NIMBASE=nimcache/nimbase.h | |
# Force errors to fail script. | |
set -e | |
# Build library for ios. |
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
template usethis(v, e: expr): stmt {.immediate.} = | |
block: | |
using v | |
e | |
when isMainModule: | |
var a, s = "kill it" | |
usethis(s): | |
add(" with fire") | |
usethis(a): |
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
diff --git a/lib/pure/os.nim b/lib/pure/os.nim | |
index d74cb1f..e404d8c 100644 | |
--- a/lib/pure/os.nim | |
+++ b/lib/pure/os.nim | |
@@ -1481,7 +1481,19 @@ proc getTempDir*(): string {.rtl, extern: "nos$1", tags: [FReadEnv].} = | |
when defined(windows): return string(getEnv("TEMP")) & "\\" | |
else: return "/tmp/" | |
-when defined(windows): | |
+when defined(nimdoc): |
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 macros | |
macro unpackArray(arr, count: expr): expr {.immediate.} = | |
var source = "(" | |
for i in 0..count.intVal-1: | |
if i > 0: source.add(',') | |
source.add(arr.toStrLit.strVal & "[" & $i & "]") | |
source.add(')') | |
result = parseStmt(source) |
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
commit 9ec47a4f7dfa07a8b85c6365ac7c966261367060 | |
Author: Grzegorz Adam Hankiewicz <gradha@imap.cc> | |
Date: Wed Dec 18 23:32:39 2013 +0100 | |
Adds docstring to macros.newIdentDefs. | |
diff --git a/lib/core/macros.nim b/lib/core/macros.nim | |
index 5f0d60e..7caf4c5 100644 | |
--- a/lib/core/macros.nim | |
+++ b/lib/core/macros.nim |
NewerOlder