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
def _view_page_source_cb(self, button): | |
browser = self._activity._tabbed_view.props.current_browser | |
text = browser.get_main_frame().get_data_source().get_data() | |
print type(text.str) | |
browser = self._activity._tabbed_view.add_tab(next_to_current=True) | |
#browser.get_source(self._open_with_source, self._open_empty) | |
#browser = self._activity._tabbed_view.props.current_browser |
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
def _view_page_source_cb(self, button): | |
browser = self._activity._tabbed_view.props.current_browser | |
text = browser.get_main_frame().get_data_source().get_data() | |
print type(text.str) | |
browser = self._activity._tabbed_view.add_tab(next_to_current=True) | |
browser.load_uri('about:blank') |
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 Sugar's Home View, a click on an activity icon by default resumes the most recent instance of the activity. This capability is designed into the Journal and is redundant in the Home View. A Sugar activity is a tool to enable the user to accomplish some task. If that task is not completed, the user can resume it via the Journal. If the tool is to be used on a new task, the user can launch it from the Home View. The current Home View assumes that the intent of the user is to continue the most recent task with that tool. | |
This task should set the Home View default to launch a new instance of the activity. The Alt key should be set to enable resuming a selected instance of the activity. By serendipity, this also shows the Home View with black and white icons. Icons with color signifying a resumable instance use the colors associated with the laptop. Unfortunately many of these color combinations make the icon much more difficult to distinguish than the black and white version. | |
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
Sugar's Home View, a click on an activity icon by default resumes the most recent instance of the activity. This capability is designed into the Journal and is redundant in the Home View. A Sugar activity is a tool to enable the user to accomplish some task. If that task is not completed, the user can resume it via the Journal. If the tool is to be used on a new task, the user can launch it from the Home View. The current Home View assumes that the intent of the user is to continue the most recent task with that tool. | |
This task should set the Home View default to launch a new instance of the activity. The Alt key should be set to enable resuming a selected instance of the activity. By serendipity, this also shows the Home View with black and white icons. Icons with color signifying a resumable instance use the colors associated with the laptop. Unfortunately many of these color combinations make the icon much more difficult to distinguish than the black and white version. | |
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
doc_a = "Brocolli is good to eat. My brother likes to eat good brocolli, but not my mother." | |
import scipy | |
import numpy | |
from nltk.tokenize import RegexpTokenizer | |
from stop_words import get_stop_words | |
from nltk.stem.porter import PorterStemmer | |
from gensim import corpora, models | |
p_stemmer = PorterStemmer() |
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
Sugar Offline- | |
There are a number of Sugar activities which currently require access to the internet (InfoSlicer, GetBooks). These activities should have an option to function with the school server. For example, GetBooks could access books on the school server and InfoSlicer could create slices from Wikipedia on the school server as Journal objects. |
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
/home/iamutkarsh/concourse/concourse-import/src/main/java/com/cinchapi/concourse/importer/DelimitedLineImporter.java:106: error: incompatible types: long cannot be converted to Set<Long> | |
return concourse.findOrInsert(resolveCriteria, sb.toString()); | |
^ | |
/home/iamutkarsh/concourse/concourse-import/src/main/java/com/cinchapi/concourse/importer/DelimitedLineImporter.java:135: error: incompatible types: long cannot be converted to Set<Long> | |
return concourse.findOrInsert(resolveCriteria, json); | |
^ | |
Note: /home/iamutkarsh/concourse/concourse-import/src/main/java/com/cinchapi/concourse/importer/cli/ImportCli.java uses or overrides a deprecated API. | |
Note: Recompile with -Xlint:deprecation for details. | |
2 errors | |
:concourse-import:compileJava FAILED |
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
= Setup the host build system = | |
* Create the python virtualenv | |
Traceback (most recent call last): | |
File "/home/bikram/projects/sugar-build/build/out/sandbox-host/cache/virtualenv-1.11.4/virtualenv.py", line 2338, in <module> | |
main() | |
File "/home/bikram/projects/sugar-build/build/out/sandbox-host/cache/virtualenv-1.11.4/virtualenv.py", line 824, in main | |
symlink=options.symlink) | |
File "/home/bikram/projects/sugar-build/build/out/sandbox-host/cache/virtualenv-1.11.4/virtualenv.py", line 992, in create_environment | |
install_wheel(to_install, py_executable, search_dirs) |
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
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<div class="container grid"> | |
<form> | |
<h3>HTML</h3> |
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 __future__ import print_function | |
import sys | |
import re | |
from cssbeautifier.__version__ import __version__ | |
# | |
# The MIT License (MIT) | |
# Copyright (c) 2013 Einar Lielmanis and contributors. |