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
import std; | |
import web; | |
Map<String, String> routes_get; | |
Int registerGet(String url, String callback) { | |
routes_get.insert(url, callback); | |
} | |
Int checkRoutes() { |
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
import std; | |
import web; | |
println("Content-Type: text/html\n"); | |
println("<html><head><title>Cgicc example</title></head>"); | |
println("<body> hello world<p>"); | |
println("Value1=",web.request.params['Value1'],"<p>"); | |
println("Value2=",web.request.params['Value2'],"<p>"); |
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
mkdir -p build/compiler/ build/extra/ build/interpreter/ build/modules/std/ build/modules/std/ffi/ build/modules/std/file/ build/modules/std/io/ build/modules/std/math/ build/modules/std/net/ build/modules/std/os/ build/modules/std/reflection/ build/modules/std/regex/ build/types/ build/vm/ | |
touch build/ensure-dirs | |
g++ -pipe -ggdb3 -D_DEBUG -DCLEVER_DEBUG -MM -MG vm/vm.cc | sed -e 's,^\([^:]*\):,build/vm/vm.o build/vm/vm.d:,' > build/vm/vm.d | |
g++ -pipe -ggdb3 -D_DEBUG -DCLEVER_DEBUG -MM -MG vm/opcode.cc | sed -e 's,^\([^:]*\):,build/vm/opcode.o build/vm/opcode.d:,' > build/vm/opcode.d | |
g++ -pipe -ggdb3 -D_DEBUG -DCLEVER_DEBUG -MM -MG types/type.cc | sed -e 's,^\([^:]*\):,build/types/type.o build/types/type.d:,' > build/types/type.d | |
g++ -pipe -ggdb3 -D_DEBUG -DCLEVER_DEBUG -MM -MG types/str.cc | sed -e 's,^\([^:]*\):,build/types/str.o build/types/str.d:,' > build/types/str.d | |
g++ -pipe -ggdb3 -D_DEBUG -DCLEVER_DEBUG -MM -MG types/pair.cc | sed -e 's,^\([^:]*\):,build/types/pair.o build/types/pair.d:,' > build/type |
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
[tasks:2] pedro@pedro:clever$ make VERBOSE=yes all | |
g++ -pipe -ggdb3 -D_DEBUG -DCLEVER_DEBUG -I. -DCLEVER_VERSION="\"devel\"" -Wall -ansi -fno-rtti -fno-exceptions -DHAVE_FFI -lpcre -lpcrecpp -lffi -ldl -o clever build/compiler/cgvisitor.o build/compiler/clever.o build/compiler/compiler.o build/compiler/cstring.o build/compiler/pkgmanager.o build/compiler/scope.o build/compiler/typechecker.o build/interpreter/driver.o build/interpreter/main.o build/interpreter/parser.o build/interpreter/scanner.o build/types/array.o build/types/bool.o build/types/byte.o build/types/double.o build/types/int.o build/types/map.o build/types/str.o build/types/type.o build/vm/opcode.o build/vm/vm.o build/modules/std/std_pkg.o build/modules/std/math/math.o build/modules/std/io/io.o build/modules/std/file/file.o build/modules/std/file/filestream.o build/modules/std/os/os.o build/modules/std/reflection/reflection.o build/modules/std/reflection/reflectionfunction.o build/modules/std/reflection/reflectionpackage.o |
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
[tasks:2] pedro@pedro:clever$ make | |
LD clever | |
build/modules/std/regex/pcre.o: In function `clever::packages::std::regex::Pcre::matches(std::vector<clever::Value*, std::allocator<clever::Value*> > const*, clever::Value*, clever::Value*)': | |
/home/pedro/src/clever/modules/std/regex/pcre.cc:96: undefined reference to `pcrecpp::RE::no_arg' | |
/home/pedro/src/clever/modules/std/regex/pcre.cc:96: undefined reference to `pcrecpp::RE::no_arg' | |
/home/pedro/src/clever/modules/std/regex/pcre.cc:96: undefined reference to `pcrecpp::RE::no_arg' | |
/home/pedro/src/clever/modules/std/regex/pcre.cc:96: undefined reference to `pcrecpp::RE::no_arg' | |
/home/pedro/src/clever/modules/std/regex/pcre.cc:96: undefined reference to `pcrecpp::RE::no_arg' | |
build/modules/std/regex/pcre.o:/home/pedro/src/clever/modules/std/regex/pcre.cc:96: more undefined references to `pcrecpp::RE::no_arg' follow | |
build/modules/std/regex/pcre.o: In function `clever::packages::std::regex::Pcre::matches(std::vector<clever::Value*, std::allocator<clever::Value*> > co |
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
diff --git a/types/str.cc b/types/str.cc | |
index a6ca0d1..cf86912 100644 | |
--- a/types/str.cc | |
+++ b/types/str.cc | |
@@ -29,6 +29,18 @@ | |
#include "types/str.h" | |
namespace clever { | |
+ | |
+/** |
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
Não poxa, dupla de praia ou rebatida é o melhor esporte pra 4 pessoas na praia. | |
Acontece assim. | |
Se tem 4 pessoas dispostas a jogar bola, dividem-se em duplas (geralmente de duas pessoas). | |
O jogo consiste numa disputa de cobranças de faltas entre as duas duplas. A dupla que começa no gol, coloca os seus dois integrantes no gol, ou seja, os dois agarrando. | |
A dupla que começa atacando, um bate a falta e o outro fica ao lado da trave, para pegar rebotes. |
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
awplus.plugin.News = Ext.extend(Ext.Panel, { | |
title: 'news', | |
id: 'p_news', | |
iconCls: 'bookmarks', | |
layout: 'card', | |
fullscreen: true, | |
animation: 'slide', | |
initComponent: function() { |
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
/** | |
* Browser history management using Ext.util.History. | |
*/ | |
Ext.define("Docs.History", { | |
extend: 'Docs.LocalStore', | |
storeName: 'History', | |
singleton: true, | |
// Maximum number of items to keep in history store | |
maxHistoryLength: 25, |
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 | |
if ($_GET['foo']) { | |
$array = array( | |
'data' => array( | |
array(0, '3212', '2144'), | |
array('0', '5461', '3524') | |
) | |
); |