Skip to content

Instantly share code, notes, and snippets.

View shadone's full-sized avatar

Denis Dzyubenko shadone

  • Oslo, Norway
View GitHub Profile
_metadata_object = False
def get_metadata():
global _metadata_object
if _metadata_object is False:
_metadata_object = boto.utils.get_instance_metadata()
return _metadata_object
console.log(ad);
console.log(ad.objectId);
console.log(typeof(ad.objectId));
output:
I2014-02-12T15:39:19.445Z]{"image":{"__type":"File","name":"db0fa3f9-a663-4b30-8fc2-5cb6f68faeab-WindyCreekHorseTransportBanner.jpg","url":"http://files.parse.com/7d8b7ab7-60c6-4d5f-a97e-12fe64a5b82c/db0fa3f9-a663-4b30-8fc2-5cb6f68faeab-WindyCreekHorseTransportBanner.jpg"},"name":"Windy Creek","url":"http://windycreek.com","objectId":"IYqx0yHENs","createdAt":"2014-02-12T10:42:47.669Z","updatedAt":"2014-02-12T10:57:11.640Z","__type":"Object","className":"LockscreenAds"}
I2014-02-12T15:39:19.445Z]No Message provided
I2014-02-12T15:39:19.445Z]undefined
[ 12%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
/home/denis/dev/woboq_codebrowser/generator/main.cpp:252:45: error: no member named 'fs' in namespace 'llvm::sys'
std::string MainExecutable = llvm::sys::fs::getMainExecutable("clang_tool", &StaticSymbol);
~~~~~~~~~~~^
/home/denis/dev/woboq_codebrowser/generator/main.cpp:290:36: error: no member named 'fs' in namespace 'llvm::sys'
if (llvm::sys::fs::exists(PossiblePath))
~~~~~~~~~~~^
/home/denis/dev/woboq_codebrowser/generator/main.cpp:303:31: error: no member named 'ClangStripOutputAdjuster' in namespace 'clang::tooling'
Ajust(clang::tooling::ClangStripOutputAdjuster());
~~~~~~~~~~~~~~~~^
diff --git a/generator/annotator.cpp b/generator/annotator.cpp
index df0ab45..2c4a751 100644
--- a/generator/annotator.cpp
+++ b/generator/annotator.cpp
@@ -269,7 +269,7 @@ bool Annotator::generate(clang::Preprocessor &PP)
continue;
std::string filename = outputPrefix % "/refs/" % it.first;
std::string error;
- llvm::raw_fd_ostream myfile(filename.c_str(), error, llvm::sys::fs::F_Append);
+ llvm::raw_fd_ostream myfile(filename.c_str(), error, llvm::raw_fd_ostream::F_Append);
[ 12%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
In file included from /home/denis/dev/woboq_codebrowser/generator/main.cpp:38:
/home/denis/dev/woboq_codebrowser/generator/preprocessorcallback.h:55:18: error: 'If' marked 'override' but does not override any member functions
virtual void If(clang::SourceLocation Loc, clang::SourceRange ConditionRange, bool ConditionValue) override
^
/home/denis/dev/woboq_codebrowser/generator/preprocessorcallback.h:61:18: error: 'Elif' marked 'override' but does not override any member functions
virtual void Elif(clang::SourceLocation Loc, clang::SourceRange ConditionRange, bool ConditionValue, clang::SourceLocation IfLoc) override {
^
/home/denis/dev/woboq_codebrowser/generator/preprocessorcallback.h:55:18: warning: 'PreprocessorCallback::If' hides overloaded virtual function [-Woverloaded-virtual]
virtual void If(clang::SourceLocation Loc, clang::SourceRange ConditionRange, bool ConditionValue)
commit 880b4e7b9509f2c1c1b25034ddaf706d5f23c769
Author: Denis Dzyubenko <denis@ddenis.info>
Date: Thu Feb 20 14:44:39 2014 +0100
Separated fake_compiler into C and CXX parts
Otherwise it doesn't work for projects mixing .c and .cpp files
diff --git a/scripts/fake_c b/scripts/fake_c
new file mode 120000
I/DEBUG ( 921): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 921): Build fingerprint: 'generic_x86/sdk_x86/generic_x86:4.4.2/KK/999428:eng/test-keys'
I/DEBUG ( 921): Revision: '0'
I/DEBUG ( 921): pid: 2100, tid: 2115, name: le.Lunchtime_qt >>> org.qtproject.example.Lunchtime_qt <<<
I/DEBUG ( 921): signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr 00000834
I/DEBUG ( 921): eax 06bc5ca3 ebx b7765fe4 ecx 0000005f edx 00000000
I/DEBUG ( 921): esi 00000000 edi b7742004
I/DEBUG ( 921): xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b
I/DEBUG ( 921): eip b774cac8 ebp b6469d54 esp 7f7b2670 flags 00210246
E/Corkscrew( 921): unrecognized dwarf lower part encoding: 0x16
Process: owncloud [79496]
Path: /Users/USER/*/owncloud.app/Contents/MacOS/owncloud
Identifier: com.owncloud.desktopclient
Version: 1.6.0pre (1.6.0.0)
Code Type: X86-64 (Native)
Parent Process: zsh [277]
Responsible: Terminal [181]
User ID: 501
Date/Time: 2014-03-04 05:56:56.656 +0100
app.post('/admin/item', isLoggedIn, function(req, res) {
var form = new multiparty.Form({
autofiles: true, // without this it will give a write stream(?)
uploadDir: __dirname + '/../public/uploads',
maxFilesSize: '10m'
});
form.parse(req, function(err, fields, files) {
if (err) {
console.log(JSON.stringify(err));
res.status(500).end();
diff --git a/changelog.md b/changelog.md
index 7d7d046..4c37125 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,71 @@
-Notice: All 1.7.x changes are present in 2.0.x aswell
+# 2.0.0-rc2
+- [FEATURE] Added to posibility of using a sequelize object as key in `sequelize.where`. Also added the option of specifying a comparator
+- [FEATURE] Added countercache functionality to hasMany associations [#2375](https://github.com/sequelize/sequelize/pull/2375)
+- [FEATURE] Basic JSON support [#2314](https://github.com/sequelize/sequelize/pull/2314)