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
| -------------------------------------------------------------------------------- | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Data.Monoid (mappend) | |
| import Hakyll | |
| import Text.Pandoc.Definition | |
| import Text.Pandoc.Shared | |
| import Text.Pandoc.Options | |
| import Control.Arrow (arr, (>>>)) | |
| import System.FilePath (dropExtension, takeFileName) |
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
| Deps.autorun(() => | |
| user = Meteor.userId() | |
| if user != null && Msg._name != "Msg" | |
| @Msg = new Meteor.Collection("Msg") | |
| else if user == null | |
| @Msg = new Meteor.Collection(null) | |
| ) |
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
| @nullPermission = { | |
| insert: (userId,object) -> | |
| true | |
| update: (userId,object) -> | |
| true | |
| remove: (userId,object) -> | |
| true | |
| } | |
| @genericPermission = { |
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
| npm http 404 http://registry.npmjs.org/http-proxy/1.0.0 | |
| npm ERR! Error: version not found: 1.0.0 : http-proxy/1.0.0 | |
| npm ERR! at RegClient.<anonymous> (/nave/installed/0.8.24/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:272:14) | |
| npm ERR! at Request.init.self.callback (/nave/installed/0.8.24/lib/node_modules/npm/node_modules/request/index.js:148:22) | |
| npm ERR! at Request.EventEmitter.emit (events.js:99:17) | |
| npm ERR! at Request.onResponse (/nave/installed/0.8.24/lib/node_modules/npm/node_modules/request/index.js:876:14) | |
| npm ERR! at Request.EventEmitter.emit (events.js:126:20) | |
| npm ERR! at IncomingMessage.Request.onResponse.buffer (/nave/installed/0.8.24/lib/node_modules/npm/node_modules/request/index.js:827:12) | |
| npm ERR! at IncomingMessage.EventEmitter.emit (events.js:126:20) | |
| npm ERR! at IncomingMessage._emitEnd (http.js:367:10) |
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
| mrt bundle generation complete. | |
| Extracting bundle. | |
| Extraction complete. | |
| Finding dependencies... | |
| /home/kiba/projects/chronotronic/.demeteorized/app/packages | |
| fs.js:500 | |
| return binding.readdir(pathModule._makeLong(path)); | |
| ^ | |
| Error: ENOENT, no such file or directory '/home/kiba/projects/chronotronic/.demeteorized/app/packages' |
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
| from os.path import expanduser | |
| import json | |
| from aqt import mw | |
| from aqt.utils import showInfo | |
| from aqt.qt import * | |
| home = expanduser("~") | |
| filename = home + "/anki.json" |
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
| Traceback (most recent call last): | |
| File "/usr/share/anki/aqt/addons.py", line 39, in loadAddons | |
| __import__(file.replace(".py", "")) | |
| File "/home/kiba/Anki/addons/test.py", line 12, in <module> | |
| json.dump({"cardCounts": mw.col.cardCount()},f) | |
| AttributeError: 'NoneType' object has no attribute 'cardCount' | |
| Traceback (most recent call last): | |
| File "/usr/share/anki/aqt/addons.py", line 39, in loadAddons | |
| __import__(file.replace(".py", "")) |
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
| kiba@localhost kibabase]$ cabal -g install socks | |
| Resolving dependencies... | |
| Configuring socks-0.5.1... | |
| Building socks-0.5.1... | |
| Preprocessing library socks-0.5.1... | |
| [1 of 6] Compiling Network.Socks5.Types ( Network/Socks5/Types.hs, dist/build/Network/Socks5/Types.o ) | |
| [2 of 6] Compiling Network.Socks5.Wire ( Network/Socks5/Wire.hs, dist/build/Network/Socks5/Wire.o ) | |
| [3 of 6] Compiling Network.Socks5.Command ( Network/Socks5/Command.hs, dist/build/Network/Socks5/Command.o ) | |
| Network/Socks5/Command.hs:99:8: |
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
| cabal install hakyll | |
| Resolving dependencies... | |
| cabal: Could not resolve dependencies: | |
| trying: hakyll-4.3.3.0 | |
| trying: hakyll-4.3.3.0:+previewserver | |
| trying: hakyll-4.3.3.0:+checkexternal | |
| trying: http-types-0.8.1 | |
| trying: case-insensitive-1.1 | |
| trying: hashable-1.2.1.0 | |
| trying: snap-server-0.9.3.4 |
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
| >summary(ratings) | |
| Class.I Class.II Class.III | |
| Min. :1 Min. :1 Min. :1 | |
| 1st Qu.:5 1st Qu.:1 1st Qu.:3 | |
| Median :5 Median :5 Median :5 | |
| Mean :5 Mean :5 Mean :5 | |
| 3rd Qu.:5 3rd Qu.:9 3rd Qu.:7 | |
| Max. :9 Max. :9 Max. :9 | |
| >names(ratings) |