text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="37419778-22b5-4830-9b14-8c938dce8fa8" name="Default" comment="">
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/getNetscalerBaseline.py" afterPath="$PROJECT_DIR$/getNetscalerBaseline.py" />
    </list>
    <ignored path="ns_python.iws" />
    <ignored path=".idea/workspace.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="DaemonCodeAnalyzer">
    <disable_hints />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="ns_python" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="BasicNetScalerRecon.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/BasicNetScalerRecon.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-8.814815" vertical-offset="9452" max-vertical-offset="16980">
              <caret line="646" column="71" selection-start-line="646" selection-start-column="70" selection-end-line="646" selection-end-column="71" />
              <folding>
                <element signature="e#776#786#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="stat_config.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/sample/stat_config.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-6.6666665" vertical-offset="0" max-vertical-offset="2550">
              <caret line="12" column="33" selection-start-line="12" selection-start-column="26" selection-end-line="12" selection-end-column="33" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="getNetscalerBaseline.py" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/getNetscalerBaseline.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="2.1611526" vertical-offset="1230" max-vertical-offset="3735">
              <caret line="217" column="0" selection-start-line="217" selection-start-column="0" selection-end-line="217" selection-end-column="0" />
              <folding>
                <element signature="e#158#244#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="set_config.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/sample/set_config.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="13020" max-vertical-offset="15255">
              <caret line="884" column="4" selection-start-line="884" selection-start-column="4" selection-end-line="884" selection-end-column="4" />
              <folding>
                <element signature="e#639#725#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="SetNetscalerBaselineConfig.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/SetNetscalerBaselineConfig.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="1649" max-vertical-offset="4170">
              <caret line="250" column="37" selection-start-line="250" selection-start-column="37" selection-end-line="250" selection-end-column="37" />
              <folding>
                <element signature="e#164#250#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="build.bat" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/sample/build.bat">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="195">
              <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="run.bat" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/sample/run.bat">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="210">
              <caret line="7" column="42" selection-start-line="7" selection-start-column="42" selection-end-line="7" selection-end-column="42" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/BasicNetScalerRecon.py" />
        <option value="$PROJECT_DIR$/SetNetscalerBaselineConfig.py" />
        <option value="$PROJECT_DIR$/getNetscalerBaseline.py" />
      </list>
    </option>
  </component>
  <component name="ProjectFrameBounds">
    <option name="x" value="295" />
    <option name="y" value="119" />
    <option name="width" value="1548" />
    <option name="height" value="1034" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ns_python" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ns_python" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ns_python" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="ns_python" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="ns_python" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="sample" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scope" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="FullScreen" value="false" />
  </component>
  <component name="RecentsManager">
    <key name="CopyFile.RECENT_KEYS">
      <recent name="$PROJECT_DIR$" />
    </key>
  </component>
  <component name="RunManager">
    <configuration default="true" type="PythonConfigurationType" factoryName="Python">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs>
        <env name="PYTHONUNBUFFERED" value="1" />
      </envs>
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="ns_python" />
      <option name="SCRIPT_NAME" value="" />
      <option name="PARAMETERS" value="" />
      <option name="SHOW_COMMAND_LINE" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Unittests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="ns_python" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <option name="PUREUNITTEST" value="true" />
      <option name="PARAMS" value="" />
      <option name="USE_PARAM" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="py.test">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="ns_python" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <option name="testToRun" value="" />
      <option name="keywords" value="" />
      <option name="params" value="" />
      <option name="USE_PARAM" value="false" />
      <option name="USE_KEYWORD" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Attests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="ns_python" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Doctests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="ns_python" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Nosetests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="ns_python" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <option name="PARAMS" value="" />
      <option name="USE_PARAM" value="false" />
      <method />
    </configuration>
    <list size="0" />
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="37419778-22b5-4830-9b14-8c938dce8fa8" name="Default" comment="" />
      <created>1428624424042</created>
      <option name="number" value="Default" />
      <updated>1428624424042</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="295" y="119" width="1548" height="1034" extended-state="0" />
    <editor active="true" />
    <layout>
      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16795866" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <option name="myTodoPanelSettings">
      <TodoPanelSettings />
    </option>
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager>
      <option name="time" value="1" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/BasicNetScalerRecon.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="14951" max-vertical-offset="16980">
          <caret line="1047" column="42" selection-start-line="1047" selection-start-column="42" selection-end-line="1047" selection-end-column="42" />
          <folding>
            <element signature="e#776#786#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/set_config.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="13020" max-vertical-offset="15255">
          <caret line="884" column="4" selection-start-line="884" selection-start-column="4" selection-end-line="884" selection-end-column="4" />
          <folding>
            <element signature="e#639#725#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/SetNetscalerBaselineConfig.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="4170">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="e#164#250#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/build.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="195">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/run.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="210">
          <caret line="7" column="42" selection-start-line="7" selection-start-column="42" selection-end-line="7" selection-end-column="42" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/BasicNetScalerRecon.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="14951" max-vertical-offset="16980">
          <caret line="1047" column="42" selection-start-line="1047" selection-start-column="42" selection-end-line="1047" selection-end-column="42" />
          <folding>
            <element signature="e#776#786#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/set_config.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="13020" max-vertical-offset="15255">
          <caret line="884" column="4" selection-start-line="884" selection-start-column="4" selection-end-line="884" selection-end-column="4" />
          <folding>
            <element signature="e#639#725#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/SetNetscalerBaselineConfig.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="3179" max-vertical-offset="4170">
          <caret line="250" column="37" selection-start-line="250" selection-start-column="37" selection-end-line="250" selection-end-column="37" />
          <folding>
            <element signature="e#164#250#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/build.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="195">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/run.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="210">
          <caret line="7" column="42" selection-start-line="7" selection-start-column="42" selection-end-line="7" selection-end-column="42" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/BasicNetScalerRecon.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="14951" max-vertical-offset="16980">
          <caret line="1047" column="42" selection-start-line="1047" selection-start-column="42" selection-end-line="1047" selection-end-column="42" />
          <folding>
            <element signature="e#776#786#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/set_config.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="13020" max-vertical-offset="15255">
          <caret line="884" column="4" selection-start-line="884" selection-start-column="4" selection-end-line="884" selection-end-column="4" />
          <folding>
            <element signature="e#639#725#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/SetNetscalerBaselineConfig.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="2295" max-vertical-offset="3885">
          <caret line="184" column="69" selection-start-line="184" selection-start-column="69" selection-end-line="184" selection-end-column="69" />
          <folding>
            <element signature="e#164#250#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/build.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="195">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/run.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="210">
          <caret line="7" column="42" selection-start-line="7" selection-start-column="42" selection-end-line="7" selection-end-column="42" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/build.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="856">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/run.bat">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="210">
          <caret line="7" column="42" selection-start-line="7" selection-start-column="42" selection-end-line="7" selection-end-column="42" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/set_config.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="13020" max-vertical-offset="15255">
          <caret line="884" column="4" selection-start-line="884" selection-start-column="4" selection-end-line="884" selection-end-column="4" />
          <folding>
            <element signature="e#639#725#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/BasicNetScalerRecon.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-8.814815" vertical-offset="9452" max-vertical-offset="16980">
          <caret line="646" column="71" selection-start-line="646" selection-start-column="70" selection-end-line="646" selection-end-column="71" />
          <folding>
            <element signature="e#776#786#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/SetNetscalerBaselineConfig.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="959" max-vertical-offset="4170">
          <caret line="250" column="37" selection-start-line="250" selection-start-column="37" selection-end-line="250" selection-end-column="37" />
          <folding>
            <element signature="e#164#250#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/sample/stat_config.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-6.6666665" vertical-offset="0" max-vertical-offset="2550">
          <caret line="12" column="33" selection-start-line="12" selection-start-column="26" selection-end-line="12" selection-end-column="33" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/getNetscalerBaseline.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="2.1611526" vertical-offset="1230" max-vertical-offset="3735">
          <caret line="217" column="0" selection-start-line="217" selection-start-column="0" selection-end-line="217" selection-end-column="0" />
          <folding>
            <element signature="e#158#244#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
class RubyUnits::Unit < Numeric

  # Handle the definition of units
  class Definition

    # @return [Array]
    attr_writer :aliases

    # @return [Symbol]
    attr_accessor :kind

    # @return [Numeric]
    attr_accessor :scalar

    # @return [Array]
    attr_accessor :numerator

    # @return [Array]
    attr_accessor :denominator

    # @return [String]
    attr_accessor :display_name

    # @example Raw definition from a hash
    #   Unit::Definition.new("rack-unit",[%w{U rack-U}, (6405920109971793/144115188075855872), :length, %w{<meter>} ])
    #
    # @example Block form
    #   Unit::Definition.new("rack-unit") do |unit|
    #     unit.aliases = %w{U rack-U}
    #     unit.definition = Unit("7/4 inches")
    #   end
    #
    def initialize(_name, _definition = [], &block)
      yield self if block_given?
      self.name     ||= _name.gsub(/[<>]/,'')
      @aliases      ||= (_definition[0] || [_name])
      @scalar       ||= _definition[1]
      @kind         ||= _definition[2]
      @numerator    ||= _definition[3] || RubyUnits::Unit::UNITY_ARRAY
      @denominator  ||= _definition[4] || RubyUnits::Unit::UNITY_ARRAY
      @display_name ||= @aliases.first
    end

    # name of the unit
    # nil if name is not set, adds '<' and '>' around the name
    # @return [String, nil]
    # @todo refactor Unit and Unit::Definition so we don't need to wrap units with angle brackets
    def name
      "<#{@name}>" if (defined?(@name) && @name)
    end

    # set the name, strip off '<' and '>'
    # @param [String]
    # @return [String]
    def name=(_name)
      @name = _name.gsub(/[<>]/,'')
    end

    # alias array must contain the name of the unit and entries must be unique
    # @return [Array]
    def aliases
      [[@aliases], @name].flatten.compact.uniq
    end

    # define a unit in terms of another unit
    # @param [Unit] unit
    # @return [Unit::Definition]
    def definition=(unit)
      _base         = unit.to_base
      @scalar       = _base.scalar
      @kind         = _base.kind
      @numerator    = _base.numerator
      @denominator  = _base.denominator
      self
    end

    # is this definition for a prefix?
    # @return [Boolean]
    def prefix?
      self.kind == :prefix
    end

    # Is this definition the unity definition?
    # @return [Boolean]
    def unity?
      self.prefix? && self.scalar == 1
    end

    # is this a base unit?
    # units are base units if the scalar is one, and the unit is defined in terms of itself.
    # @return [Boolean]
    def base?
      (self.denominator     == RubyUnits::Unit::UNITY_ARRAY) &&
      (self.numerator       != RubyUnits::Unit::UNITY_ARRAY) &&
      (self.numerator.size  == 1) &&
      (self.scalar          == 1) &&
      (self.numerator.first == self.name)
    end
  end
end

redpajama_set_name: RedPajamaGithub


text:
1. User Guide

1.1. DIY Device User Guide

DIY device refers to the hardware device that is designed and built by your own, for example, a DIY Arduino project, or DIY Raspberry Pi project. When you add the account and device information in the codes, you can sync data to IoTgo server and manipulate various devices through IoT platform.

Now we will show you how to synchronize temperature and humidity data from a DIY device to IoTgo platform.

      1.1.1. Register IoTgo Account and Get the API Key

First, you need an IoTgo account so that you can get your own API Key. The API Key is fatal because only add the Key in your codes, can the data sync to your IoTgo account.

1.1.2. DIY Device

We use Wboard Pro and SHT10 temperature and humidity sensor as example. Wboard can't be plugged the electronic brick directly, so we add an expansion board on Wboard to make it connect with the electronic brick without soldering.

1.1.3. Add a New Device in Your IoTgo Account

Click "My Device", and choose "Create DIY Device".

In the pop-up window, you need to fill in the information about this device name and type and then set its group name. Then click "create", the DIY device is created successfully.

1.1.4. Get Your DIY Device ID

Return to "My Device" interface, you will see the new added DIY device icon, click it you can get the DIY device ID. Why you need a device ID? As a DIY device, when it communicates with server and upload data to the server, two codes will be needed to tell the server that this DIY device is belong to which device in which account. Therefore, the API Key is to identify your account, and the Device ID is to identify the specific device in the account.

For example, our new added DIY device ID is 0300000005.

1.1.5. Write the Code

Write your codes to read the value of temperature and humidity, then the data will be uploaded to your IoTgo account through HTTP agreement (please refer to API Reference to know more). As we use Wboard Pro to do the experiment here, the IoTgo Arduino Library can be taken to use directly.

Use the temp_hum_sensor demo for Wboard Pro.

Type the Device ID and API Key we've got in the above steps to THSENSOR_ID and THSENSOR_APIKEY. For example,

    #define THSENSOR_ID            "0300000005"
    #define THSENSOR_APIKEY        "310ef32d-e7f5-48db-a95e-b29fc07d5aaa"

Modify WIFI_SSID and WIFI_PASS to an effective wifi spot. For example,

    #define WIFI_SSID           "ITEAD"
    #define WIFI_PASS           "11223344"

Revise the SHT10 sensor pin number as below.

    #define THSENSOR_DATA_PIN    (6)
    #define THSENSOR_CLOCK_PIN   (7)

1.1.6. Upload and Debug

After uploading the demo to WBoard Pro, you can open the serial monitor to get the debugging and running information printed from serial ports.

When "setup done" appears, the DIY device is starting to upload date to IoTgo Platform. You can login IoTgo platform, and open the device to see temperature and humidity data.

1.2. Indie Device User Guide

Indie Device refers to the product that is productization. If developers use the open IoTgo platform to develop the smart device, you can just print the factory API Key and Device ID in product's packing. When using Indie Device, users can add the device in IoTgo platform without coding.

1.2.1. Register IoTgo Account

User need to register his IoTgo account first and login. Enter into "My Device" interface and click "Add Indie Device".

In the pop-up window, you need to fill in the information as below.

Device Name: Name it whatever you like. But the basic principle is easy for identifying such as thermometer.

Group Name: you'd better put it in a certain group so that you
        can handle them well-organized. For example, name the group Bedroom.

Device ID: find it in the packing.

Factory API Key: find it in the packing.

Click "Add" and return to "My Device" interface, you can see the thermometer icon in the Bedroom group.

Power your Indie Device, it will connect IoTgo server automatically. How to configure wifi, please refer to the product manual. Later, the data read from the indie device will sync to your IoTgo account and you can remote access and control your Indie Device.

2. Developer Guide

2.1. Hardware Developer Guide

2.1.1. Hardware Reference

In this section, we will recommend several hardware platforms
      compatible with IoTgo to you. By using these hardware platforms with
      IoTgo, you can launch a rapid development for your project. You can
      find their schematics, firmware codes and SDK in our wiki –
      wiki.iteadstudio
        .com.

Know more about it, please refer to

        http://iotgo.iteadstudio.com/hardware.

2.1.2. Firmware / Library

For now, there are only two libraries: one is IoTgo Arduino Library, and the other is Segnix & IoTgo Segnix Library.

      IoTgo Arduino Library is mainly applied in arduino series
          hardware. So far, we offer only library files including light, switch and temperature sensor. You can launch some simple projects by using this library.

IoTgo Arduino Library has layers following:

IoTgo Device Layer: Switch/Light/THSensor

Http Proxy Layer: IoTgo

Network Layer: NetInterface

Ethernet Layer: ESP8266(WIFI)

Hardware Layer: MEGA/WBoard/WBoard Pro/IBoard Pro/GBoard Pro

For more information, please refer to http://docs.iteadstudio.com/IoTgo-ino/

Segnix & IoTgo Segnix Library is applied in single board
          computers. Segnix is an open-source interface library for hardware manipulation based on Linux platform and compatible with Arduino API. The latest Segnix contains IoTgo Segnix Library, and you can invoke various interfaces to manipulate devices.

2.1.3. DIY Tutorials

Coming soon!

2.2. Server Developer Guide

2.2.1. Installation

Prerequisite

Git: Free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

MongoDB: Open-source document database, the leading NoSQL database

Node.js: An asynchronous JavaScipt event driven framework, and yes, JavaScript on the server!

Forever: Running Node application as system service.

Bower: A package manager for the web, optimized for the front-end.

Install IoTgo

Get IoTgo source code from github.com

git clone https://github.com/itead/IoTgo.git

Change directory to downloaded IoTgo and install dependencies.

cd IoTgo && npm install

Change directory to IoTgo Web App frontend and install dependencies.

cd public/frontend && bower install

Change directory to IoTgo Web App backend and install dependencies.

cd ../backend && bower install

Change directory back to IoTgo root

cd ../..

Configure IoTgo

Copy config.js.sample to config.js which is the actual configuration file being used during IoTgo boot process.

copy config.js.sample config.js

Edit config.js and change corresponding fields to reflect your hosting environment.

module.exports = {
      host: 'iotgo.iteadstudio.com',          // Hostname of IoTgo
      db: {
      uri: 'mongodb://localhost/iotgo',   // MongoDB database address
      options: {
      user: 'iotgo',                  // MongoDB database username
      pass: 'iotgo'                   // MongoDB database password
      }
      },
      jwt: {
      secret: 'jwt_secret'                // Shared secret to encrypt JSON Web Token
      },
      admin:{
      'iotgo@iteadstudio.com': 'password' // Administrator account of IoTgo
      },
      page: {
      limit: 50,                          // Default query page limit
      sort: -1                            // Default query sort order
      },
      recaptcha: {
      secret: 'reCAPTCHA secret key',                 // https://developers.google.com/recaptcha/intro
      url: 'https://www.google.com/recaptcha/api/siteverify'
      }
    };

Edit public/frontend/views/signup.html and add your reCAPTCHA site key applied from Google

<div ng-model="response" class="form-group" g-recaptcha
        g-recaptcha-sitekey="Your reCAPTCHA site key goes here"></div>

IoTgo as System Service

To manage IoTgo like system service, such as:

sudo service iotgo start  // Start IoTgo
    sudo service iotgo stop // Stop IoTgo

and make IoTgo start automatically during OS boot, we can create init scripts utilizing Forever to monitor IoTgo.

The following init script is a working example. If you want to use it, please put the script in /etc/init.d/ folder and change file permission to 755. You may also need to change NAME, NODE_PATH, NODE_APPLICATION_PATH to reflect your hosting environment.

sudo touch /etc/init.d/iotgo
    sudo chmod 755 /etc/init.d/iotgo
    sudo update-rc.d iotgo defaults

Note: please refer to Node.js and Forever as a Service: Simple Upstart and Init Scripts for Ubuntu for detailed explanations of the script.

      #!/bin/bash
      #
      # An init.d script for running a Node.js process as a service using Forever as
      # the process monitor. For more configuration options associated with Forever,
      # see: https://github.com/nodejitsu/forever
      #
      # This was written for Debian distributions such as Ubuntu, but should still
      # work on RedHat, Fedora, or other RPM-based distributions, since none of the
      # built-in service functions are used. So information is provided for both.
      #

      NAME="ITEAD IoTgo"
      NODE_BIN_DIR="/usr/bin:/usr/local/bin"
      NODE_PATH="/home/itead/IoTgo/node_modules"
      APPLICATION_PATH="/home/itead/IoTgo/bin/www"
      PIDFILE="/var/run/iotgo.pid"
      LOGFILE="/var/log/iotgo.log"
      MIN_UPTIME="5000"
      SPIN_SLEEP_TIME="2000"

      PATH=$NODE_BIN_DIR:$PATH
      export NODE_PATH=$NODE_PATH

      start() {
      echo "Starting $NAME"
      forever \
      --pidFile $PIDFILE \
      -a \
      -l $LOGFILE \
      --minUptime $MIN_UPTIME \
      --spinSleepTime $SPIN_SLEEP_TIME \
      start $APPLICATION_PATH 2>&1 > /dev/null &
      RETVAL=$?
      }

      stop() {
      if [ -f $PIDFILE ]; then
      echo "Shutting down $NAME"
      forever stop $APPLICATION_PATH 2>&1 > /dev/null
      rm -f $PIDFILE
      RETVAL=$?
      else
      echo "$NAME is not running."
      RETVAL=0
      fi
      }

      restart() {
      stop
      start
      }

      status() {
      echo `forever list` | grep -q "$APPLICATION_PATH"
      if [ "$?" -eq "0" ]; then
      echo "$NAME is running."
      RETVAL=0
      else
      echo "$NAME is not running."
      RETVAL=3
      fi
      }

      case "$1" in
      start)
      start
      ;;
      stop)
      stop
      ;;
      status)
      status
      ;;
      restart)
      restart
      ;;
      *)
      echo "Usage: {start|stop|status|restart}"
      exit 1
      ;;
      esac
      exit $RETVAL

Running IoTgo

To run IoTgo, you can start it in console mode

DEBUG="iotgo" ./bin/www

To run IoTgo on other port instead of 80, you can use PORT environment variable.

PORT="3000" DEBUG="iotgo" ./bin/www

To run IoTgo as system service

sudo service iotgo start

2.2.2. Source Code

The source code of IoTgo is hosted on
      Github and
      licensed under MIT, so basically you can do any thing you want to the
      code.

The current version of IoTgo source code has three main components
      that works with each other:

Web API: for managing users and devices. The code
        is placed under folder routes

Device API: for updating device status. The code
        is placed under folder protocol

Web App: a simple Web App utilizing Web API and Device
        API to provide a GUI which could be used to manage users, devices,
        and also update device status. The code is placed under folder
        public

2.3. App Developer Guide

IoTgo comes with a simple Web App which works but is definitely not
      stylish and user-friendly for every use case.

We are comfortable to admit we are not app experts, and this is the
      reason we designed IoTgo to be an API server instead of traditional
      website. We believe app developers out there could do much better app
      than us by using IoTgo APIs.

Web API: for managing users and devices. Please
        refer to Web API section of IoTgo API
        doc

Device API: for updating device status. Please
        refer to Device API section of IoTgo API
        doc

          1. User Guide

              1.1. DIY Device User Guide

1.1.1. Register IoTgo Account

1.1.2. DIY Device

1.1.3. Add a New Device in Your IoTgo Account

1.1.4. Get Your DIY Device ID

1.1.5. Write the Code

1.1.6. Upload and Debug

              1.2. Indie Device User Guide

1.2.1. Register IoTgo Account

          2. Developer Guide

              2.1. Hardware Developer Guide

2.1.1. Hardware Reference

2.1.2. Firmware / Library

2.1.3. DIY Tutorials

              2.2. Server Developer Guide

2.2.1. Installation

2.2.2. Source Code

              2.3. App Developer Guide


text:
local alert    = require("hs.alert")
local timer    = require("hs.timer")
local eventtap = require("hs.eventtap")

local events   = eventtap.event.types

local module   = {}

-- You either override these here or after including this file from another, e.g.
--
-- ctrlDoublePress = require("this-file")
-- ctrlDoublePress.timeFrame = 2
-- ctrlDoublePress.action = function()
--    do something special
-- end

-- how quickly must the two single ctrl taps occur?
module.timeFrame = 1

-- what to do when the double tap of ctrl occurs
module.action = function()
    alert("You double tapped ctrl!")
end

-- Synopsis:

-- what we're looking for is 4 events within a set time period and no intervening other key events:
--  flagsChanged with only ctrl = true
--  flagsChanged with all = false
--  flagsChanged with only ctrl = true
--  flagsChanged with all = false

local timeFirstControl, firstDown, secondDown = 0, false, false

-- verify that no keyboard flags are being pressed
local noFlags = function(ev)
    local result = true
    for k,v in pairs(ev:getFlags()) do
        if v then
            result = false
            break
        end
    end
    return result
end

-- verify that *only* the ctrl key flag is being pressed
local onlyCtrl = function(ev)
    local result = ev:getFlags().ctrl
    for k,v in pairs(ev:getFlags()) do
        if k ~= "ctrl" and v then
            result = false
            break
        end
    end
    return result
end

-- the actual workhorse

module.eventWatcher = eventtap.new({events.flagsChanged, events.keyDown}, function(ev)
    -- if it's been too long; previous state doesn't matter
    if (timer.secondsSinceEpoch() - timeFirstControl) > module.timeFrame then
        timeFirstControl, firstDown, secondDown = 0, false, false
    end

    if ev:getType() == events.flagsChanged then
        if noFlags(ev) and firstDown and secondDown then -- ctrl up and we've seen two, so do action
            if module.action then module.action() end
            timeFirstControl, firstDown, secondDown = 0, false, false
        elseif onlyCtrl(ev) and not firstDown then         -- ctrl down and it's a first
            firstDown = true
            timeFirstControl = timer.secondsSinceEpoch()
        elseif onlyCtrl(ev) and firstDown then             -- ctrl down and it's the second
            secondDown = true
        elseif not noFlags(ev) then                        -- otherwise reset and start over
            timeFirstControl, firstDown, secondDown = 0, false, false
        end
    else -- it was a key press, so not a lone ctrl char -- we don't care about it
        timeFirstControl, firstDown, secondDown = 0, false, false
    end
    return false
end):start()

return module


text:
Edit Leave Type Details

                <form class="form-horizontal" action="<?php echo site_url('leave_types/edit/'. $leave_type['id']); ?>" method="post">

                        Name

                            <input type="text" name="name" class="form-control" value="<?php echo $leave_type['name']; ?>">

<?php echo form_error('name'); ?>

                        Description

                            <textarea name="description" class="form-control" rows="4" cols="40"><?php echo $leave_type['description']; ?></textarea>

<?php echo form_error('description'); ?>

                            <button type="submit" class="<?php echo $btn_submit; ?>">Submit</button>

                </form>


text:
__author__ = 'Bohdan Mushkevych'

import time

def main(*args):
    secs = 1
    print('Example Script: entered main function body')
    print('Example Script: called with the arguments {0}'.format(args))
    print('Example Script: falling asleep for {0} seconds'.format(secs))
    time.sleep(secs)

# if __name__ == '__main__':
#     main()


text:
const _ = require('lodash');
/* ngInject */
function myfamily($timeout, Business, $location, scope, $uibModal) {
  $timeout(() => {
    scope.getStatus();
  }, 100);

  // scope.$on('$NOTLOGGEDIN', function () {
  //   $location.path('/');
  // });
  // scope.$on('$LOGOUT', function () {
  //   $location.path('/');
  // });
  scope.getMySubmissions = () => {
    Business.individual.getMySubmissions().then((result) => {
      if (result && result.length && result !== 'null') {
        _.each(result, (submission) => {
          Business.user.getUserInfoId(submission.submitter).then((data) => {
            if (data) {
              submission.displayableName = data.displayableName;
            }
          });
        });
      }
      scope.approveThese = result;
    }, () => {
      // console.log('something broke');
    });
  };
  scope.getMySubmissions();

  scope.getStatus = () => {
    Business.user.isLoggedIn().then((result) => {
      // console.log('result', result);
      if (!result) {
        $location.path('/');
      }
    });
  };

  scope.editIndividual = (id) => {
    scope.currentId = id;
    scope.open(id);
  };

  scope.open = (id) => {
    scope.modalInstance = $uibModal.open({
      animation: true,
      template: `

Add/Edit individuals

            <button class="btn btn-primary" ng-click="editFile()">Add/Edit Files</button>
            <edit-individual person-id="${id || ''}" callback="doCallback"></edit-individual>

`,
      controller: ($scope, $uibModalInstance) => {
        $scope.closeModal = () => {
          $uibModalInstance.dismiss();
        };
        $scope.editFile = () => {
          $uibModalInstance.dismiss();
          scope.editfile(id);
        };
      },
      size: 'lg', // 'lg, sm'
      resolve: { // injecting data into the modal
        editId: () => {
          return id;
        },
        doCallback: () => {
          return scope.getMySubmissions;
        }
      }
    });
    scope.modalInstance.result.then(() => {
      scope.getMySubmissions();
    }, () => {
      scope.getMySubmissions();
    });
  };
  scope.editfile = (id) => {
    scope.modalInstance = $uibModal.open({
      animation: true,
      template: `

Add/Edit individuals

          <button class="btn btn-primary" ng-click="open(${id})">Back to Individual</button>

            <file-list individual="${id}" callback="$ctrl.selectionMade(selection)" new-selection="$ctrl.selection"></file-list>

              <fhdropzone individual="${id}"><fhdropzone>

              <button class="btn btn-primary" style="width: 150px; min-height: 34px; margin: 20px;" ng-click="$ctrl.selection = null;">Add New Files</button>

                <edit-file callback="$ctrl.fileEdited(file)" style="width: 100%;" file="$ctrl.selection"></edit-file>

`,
      controller: ($scope, $uibModalInstance) => {
        const ctrl = {};
        $scope.$ctrl = ctrl;
        ctrl.selectionMade = selectionMade;
        ctrl.fileEdited = fileEdited;

        function fileEdited(file) {
          if (file) {
            ctrl.selection = file;
          } else {
            ctrl.selection = null;
          }
        }

        function selectionMade(selection) {
          ctrl.selection = selection;
        }
        $scope.closeModal = () => {
          $uibModalInstance.dismiss();
        };
        $scope.open = () => {
          $uibModalInstance.dismiss();
          scope.open(id);
        };
      },
      size: 'lg', // 'lg, sm'
      resolve: { // injecting data into the modal
        editId: () => {
          return id;
        },
        doCallback: () => {
          return scope.getMySubmissions;
        }
      }
    });
    scope.modalInstance.result.then(() => {
      scope.getMySubmissions();
    }, () => {
      scope.getMySubmissions();
    });
  };

  Business.user.subscribeToUserState(scope.getStatus);
  // const fn = this;
}

// inject dependencies here
myfamily.$inject = ['$timeout', 'business', '$location', '$scope', '$uibModal'];

module.exports = myfamily;


text:
package com.facebook.litho.specmodels.model;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;

import com.facebook.litho.annotations.FromPrepare;
import com.facebook.litho.annotations.OnCreateTransition;
import com.facebook.litho.annotations.Prop;
import com.facebook.litho.annotations.ShouldUpdate;
import com.facebook.litho.annotations.State;
import com.facebook.litho.specmodels.internal.ImmutableList;
import com.squareup.javapoet.AnnotationSpec;
import com.squareup.javapoet.TypeName;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/** Tests {@link MethodParamModelFactory} */
@RunWith(JUnit4.class)
public class MethodParamModelFactoryTest {

  private TypeSpec mDiffTypeSpecWrappingInt;

  @Before
  public void ListUp() {
    mDiffTypeSpecWrappingInt =
        new TypeSpec.DeclaredTypeSpec(
            ClassNames.DIFF,
            ClassNames.DIFF.packageName() + "." + ClassNames.DIFF.simpleName(),
            () -> new TypeSpec(TypeName.OBJECT),
            () -> ImmutableList.of(),
            () -> ImmutableList.of(new TypeSpec(TypeName.INT.box())));
  }

  @Test
  public void testCreateSimpleMethodParamModel() {
    MethodParamModel methodParamModel =
        MethodParamModelFactory.create(
            new TypeSpec(TypeName.BOOLEAN),
            "testParam",
            new ArrayList<Annotation>(),
            new ArrayList<AnnotationSpec>(),
            ImmutableList.<Class<? extends Annotation>>of(),
            ImmutableList.of(),
            true,
            null);

    assertThat(methodParamModel).isInstanceOf(SimpleMethodParamModel.class);
  }

  @Test
  public void testCreatePropModel() {
    final List<Annotation> annotations = new ArrayList<>();
    annotations.add(mock(Prop.class));
    MethodParamModel methodParamModel =
        MethodParamModelFactory.create(
            new TypeSpec(TypeName.BOOLEAN),
            "testParam",
            annotations,
            new ArrayList<AnnotationSpec>(),
            ImmutableList.<Class<? extends Annotation>>of(),
            ImmutableList.of(),
            true,
            null);

    assertThat(methodParamModel).isInstanceOf(PropModel.class);
  }

  @Test
  public void testCreateStateModel() {
    final List<Annotation> annotations = new ArrayList<>();
    annotations.add(mock(State.class));
    MethodParamModel methodParamModel =
        MethodParamModelFactory.create(
            new TypeSpec(TypeName.BOOLEAN),
            "testParam",
            annotations,
            new ArrayList<AnnotationSpec>(),
            ImmutableList.<Class<? extends Annotation>>of(),
            ImmutableList.of(),
            true,
            null);

    assertThat(methodParamModel).isInstanceOf(StateParamModel.class);
  }

  @Test
  public void testCreateInterStageInputModel() {
    final List<Annotation> annotations = new ArrayList<>();
    Annotation fromPrepare =
        new Annotation() {
          @Override
          public Class<? extends Annotation> annotationType() {
            return FromPrepare.class;
          }
        };
    annotations.add(fromPrepare);
    MethodParamModel methodParamModel =
        MethodParamModelFactory.create(
            new TypeSpec(TypeName.BOOLEAN),
            "testParam",
            annotations,
            new ArrayList<AnnotationSpec>(),
            ImmutableList.<Class<? extends Annotation>>of(FromPrepare.class),
            ImmutableList.of(),
            true,
            null);

    assertThat(methodParamModel).isInstanceOf(InterStageInputParamModel.class);
  }

  @Test
  public void testCreateDiffModel() {
    final List<Annotation> annotations = new ArrayList<>();
    Annotation annotation =
        new Annotation() {
          @Override
          public Class<? extends Annotation> annotationType() {
            return OnCreateTransition.class;
          }
        };
    annotations.add(annotation);

    MethodParamModel methodParamModel =
        MethodParamModelFactory.create(
            mDiffTypeSpecWrappingInt,
            "testParam",
            annotations,
            new ArrayList<AnnotationSpec>(),
            ImmutableList.<Class<? extends Annotation>>of(),
            ImmutableList.of(),
            true,
            null);

    assertThat(methodParamModel).isInstanceOf(RenderDataDiffModel.class);
  }

  @Test
  public void testDontCreateDiffForShouldUpdate() {
    final List<Annotation> annotations = new ArrayList<>();
    Annotation annotation =
        new Annotation() {
          @Override
          public Class<? extends Annotation> annotationType() {
            return ShouldUpdate.class;
          }
        };
    annotations.add(annotation);

    MethodParamModel methodParamModel =
        MethodParamModelFactory.create(
            mDiffTypeSpecWrappingInt,
            "testParam",
            annotations,
            new ArrayList<AnnotationSpec>(),
            ImmutableList.<Class<? extends Annotation>>of(),
            ImmutableList.of(),
            false,
            null);

    assertThat(methodParamModel).isNotInstanceOf(RenderDataDiffModel.class);
  }

  @Test
  public void testCreateSimpleMethodParamModelWithSpecificType() {
    Object representedObject = new Object();
    SimpleMethodParamModel param =
        MethodParamModelFactory.createSimpleMethodParamModel(
            new TypeSpec(TypeName.CHAR), "customParamModel", representedObject);

    assertThat(param.getTypeName()).isEqualTo(TypeName.CHAR);
    assertThat(param.getName()).isEqualTo("customParamModel");
    assertThat(param.getRepresentedObject()).isEqualTo(representedObject);
    assertThat(param.getAnnotations()).isEmpty();
    assertThat(param.getExternalAnnotations()).isEmpty();
  }
}


text:
package org.jnosql.artemis.column.spi;

import org.jnosql.artemis.CDIExtension;
import org.jnosql.artemis.Database;
import org.jnosql.artemis.DatabaseType;
import org.jnosql.artemis.column.ColumnTemplate;
import org.jnosql.artemis.column.ColumnTemplateAsync;
import org.jnosql.artemis.model.Person;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

import javax.inject.Inject;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

@ExtendWith(CDIExtension.class)
public class ColumnFamilyProducerExtensionTest {

    @Inject
    @Database(value = DatabaseType.COLUMN, provider = "columnRepositoryMock")
    private ColumnTemplate managerMock;

    @Inject
    private ColumnTemplate manager;

    @Inject
    @Database(value = DatabaseType.COLUMN, provider = "columnRepositoryMock")
    private ColumnTemplateAsync managerMockAsync;

    @Inject
    private ColumnTemplateAsync managerAsync;

    @Test
    public void shouldInstance() {
        assertNotNull(manager);
        assertNotNull(managerMock);
    }

    @Test
    public void shouldSave() {
        Person person = manager.insert(Person.builder().build());
        Person personMock = managerMock.insert(Person.builder().build());

        assertEquals("Default", person.getName());
        assertEquals("columnRepositoryMock", personMock.getName());
    }

    @Test
    public void shouldSaveAsync() {
        managerAsync.insert(Person.builder().build());
        managerMockAsync.insert(Person.builder().build());
    }
}


text:
class Jlab81

// Student Name : 		Daniel Hayden
// Student Id Number : 	C00137009
// Date :				22/02/15
// Purpose :			1)	Write a method findHighest that takes an array of integers as its argument and returns as its result the index position of the highest number in the array

{

    // Return method to return the index position of the highest number in the array.
	public static int findHighestIndex(int numbersArray[], int highest)
	{
		int index;
		int indexPos=0;

		for (index = 0; index <= numbersArray.length-1; index ++)
    		{
				if(numbersArray[index] == highest)
				{
					indexPos = index;
				}
    		}

    	return indexPos;
	}

    // Return method to find the highest number in the array.
	public static int highestNum(int numbersArray[])
	{
		int index;
		int highest=0;

		highest = numbersArray[0];

		for (index = 0; index <= numbersArray.length-1; index ++)
    		{
				if(numbersArray[index] > highest)
				{
					highest = numbersArray[index];
				}
    		}

    	return highest;
	}

    // Void method to fill the array
	public static void fillArray(int numbersArray[])
	{
		int index;

		for (index = 0; index <= numbersArray.length-1; index ++)
    		{
    			System.out.print("\nEnter number " + (index + 1) + " : ");
				numbersArray[index] = EasyIn.getInt();
    		}
	}

	// Main method
    public static void main(String[] args)
    {
   		int numbersArray[];
    	int arraySize;
    	int highest;

    	System.out.print("\nPlease enter the amout of numbers you need to enter: ");
		arraySize = EasyIn.getInt();

		numbersArray = new int[arraySize]; // SET numbersArray[arraySize]
		fillArray(numbersArray); // PASS the array strcture to be filled by user
		highest = highestNum(numbersArray); // SET highest so it can be used in the method below.

		System.out.println("\nThe highest number you entered was : " + highest );
		System.out.println("\nThe index position of [" + highest + "] is : " + findHighestIndex(numbersArray, highest));

    }
}


text:
<!DOCTYPE html>

<meta name="viewport">

  <title title-notify>({{alertCount}}) Angulert Demo</title>
  <link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.css">
  <link rel="stylesheet" type="text/css" href="angulert.css">

        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
          Toggle navigation

        </button>
        Brand

        <angulert-center opts=""></angulert-center>

Link

Link

          Dropdown

Action

Another action

Something else here

Separated link

One more separated link

  <button class="btn btn-default" ng-click="addMessages()">Add Message</button>


text:
layout: post
title: "Big City Life"
date: 2015-01-12
backgrounds:
    - https://dl.dropboxusercontent.com/u/18322837/cdn/Streetwill/vanilla.jpeg
    - https://dl.dropboxusercontent.com/u/18322837/cdn/Streetwill/morning.jpeg
thumb: https://dl.dropboxusercontent.com/u/18322837/cdn/Streetwill/thumbs/the-bridge.jpeg
categories: travel city
tags: work business metropolis
---

Всем привет


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>

    <no title>
 —
    SQLAlchemy 0.9 Documentation

        </title>

                <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
                <link rel="stylesheet" href="../_static/changelog.css" type="text/css" />
                <link rel="stylesheet" href="../_static/sphinx_paramlinks.css" type="text/css" />
                <link rel="stylesheet" href="../_static/docs.css" type="text/css" />

    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
        <link rel="copyright" title="Copyright" href="../copyright.html" />
    <link rel="top" title="SQLAlchemy 0.9 Documentation" href="../index.html" />

        Release: 0.9.9 | Release Date: March 10, 2015

SQLAlchemy 0.9 Documentation

SQLAlchemy 0.9 Documentation

                Contents |
                Index

                <form class="search" action="../search.html" method="get">
                  <input type="text" name="q" size="12" /> <input type="submit" value="Search" />
                  <input type="hidden" name="check_keywords" value="yes" />
                  <input type="hidden" name="area" value="default" />
                </form>

            SQLAlchemy 0.9 Documentation

Overview

SQLAlchemy ORM

SQLAlchemy Core

Dialects

Frequently Asked Questions

Changes and Migration

Moved!   Classical Mappings

        © Copyright 2007-2015, the SQLAlchemy authors and contributors.
        Created using Sphinx 1.2.3.


text:
package org.apache.camel.component.redis;

import org.apache.camel.Exchange;
import org.apache.camel.impl.DefaultProducer;
import org.apache.camel.util.URISupport;

/**
 * The Redis producer.
 */
public class  RedisProducer extends DefaultProducer {
    private final RedisClient redisClient;
    private final CommandDispatcher commandDispatcher;

    private transient String redisProducerToString;

    public RedisProducer(RedisEndpoint endpoint, RedisConfiguration configuration) {
        super(endpoint);
        this.redisClient = new RedisClient(configuration.getRedisTemplate());
        this.commandDispatcher = new CommandDispatcher(configuration);
    }

    public void process(final Exchange exchange) throws Exception {
        commandDispatcher.execute(redisClient, exchange);
    }

    @Override
    public RedisEndpoint getEndpoint() {
        return (RedisEndpoint)super.getEndpoint();
    }

    @Override
    public String toString() {
        if (redisProducerToString == null) {
            redisProducerToString = "RedisProducer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]";
        }
        return redisProducerToString;
    }
}


text:
import { createStore, applyMiddleware, compose } from 'redux'
import { apiMiddleware } from 'redux-api-middleware'
import thunk from 'redux-thunk'
import createLogger from 'redux-logger'

import appReducer from '../appReducer'
import crashReporterMiddleware from '../middleware/crashReporter'
import authorizationMiddleware from '../../authorization/authorizationMiddleware'

export default function configureStore(initialState) {
    const store = createStore(
        appReducer,
        compose(
            applyMiddleware(
                thunk,
                crashReporterMiddleware,
                apiMiddleware,
                createLogger(),
                authorizationMiddleware
            )
        )
    )
    return store
}


text:
angular.module('adaptv.adaptStrap.infinitedropdown', ['adaptv.adaptStrap.utils', 'adaptv.adaptStrap.loadingindicator'])
/**
 * Use this directive if you need to render a table that loads data from ajax.
 */
  .directive('adInfiniteDropdown',
  ['$parse', '$compile', '$templateCache', '$adConfig', 'adLoadPage', 'adDebounce', 'adStrapUtils', 'adLoadLocalPage',
    function ($parse, $compile, $templateCache, $adConfig, adLoadPage, adDebounce, adStrapUtils, adLoadLocalPage) {
      'use strict';
      function linkFunction(scope, element, attrs) {
        // scope initialization
        scope.attrs = attrs;
        scope.adStrapUtils = adStrapUtils;
        scope.items = {
          list: [],
          paging: {
            currentPage: 1,
            totalPages: undefined,
            pageSize: Number(attrs.pageSize) || 10
          }
        };
        scope.localConfig = {
          loadingData: false,
          singleSelectionMode: $parse(attrs.singleSelectionMode)() ? true : false,
          dimensions: {
            'max-height': attrs.maxHeight || '200px',
            'max-width': attrs.maxWidth || 'auto'
          }
        };
        scope.selectedItems = scope.$eval(attrs.selectedItems) || [];
        scope.ajaxConfig = scope.$eval(attrs.ajaxConfig) || {};

        // ---------- Local data ---------- //
        var lastRequestToken,
            watchers = [];

        // ---------- ui handlers ---------- //
        scope.addRemoveItem = function(event, item, items) {
          event.stopPropagation();
          if (scope.localConfig.singleSelectionMode) {
            scope.selectedItems[0] = item;
          } else {
            adStrapUtils.addRemoveItemFromList(item, items);
          }
          var callback = scope.$eval(attrs.onItemClick);
          if (callback) {
            callback(item);
          }
        };

        scope.loadPage = adDebounce(function (page) {
          lastRequestToken = Math.random();
          scope.localConfig.loadingData = true;
          var pageLoader = scope.$eval(attrs.pageLoader) || adLoadPage,
            params = {
              pageNumber: page,
              pageSize: scope.items.paging.pageSize,
              sortKey: scope.localConfig.predicate,
              sortDirection: scope.localConfig.reverse,
              ajaxConfig: scope.ajaxConfig,
              token: lastRequestToken
            },
            successHandler = function (response) {
              if (response.token === lastRequestToken) {
                if (page === 1) {
                  scope.items.list = response.items;
                } else {
                  scope.items.list = scope.items.list.concat(response.items);
                }

                scope.items.paging.totalPages = response.totalPages;
                scope.items.paging.currentPage = response.currentPage;
                scope.localConfig.loadingData = false;
              }
            },
            errorHandler = function () {
              scope.localConfig.loadingData = false;
            };
          if (attrs.localDataSource) {
            params.localData = scope.$eval(attrs.localDataSource);
            successHandler(adLoadLocalPage(params));
          } else {
            pageLoader(params).then(successHandler, errorHandler);
          }
        }, 10);

        scope.loadNextPage = function () {
          if (!scope.localConfig.loadingData) {
            if (scope.items.paging.currentPage + 1 <= scope.items.paging.totalPages) {
              scope.loadPage(scope.items.paging.currentPage + 1);
            }
          }
        };

        // ---------- initialization and event listeners ---------- //
        //We do the compile after injecting the name spacing into the template.
        scope.loadPage(1);
        // ---------- set watchers ---------- //
        // reset on parameter change
        if (attrs.ajaxConfig) {
          scope.$watch(attrs.ajaxConfig, function (value) {
            if (value) {
              scope.loadPage(1);
            }
          }, true);
        }
        if (attrs.localDataSource) {
          watchers.push(
            scope.$watch(attrs.localDataSource, function (value) {
              if (value) {
                scope.loadPage(1);
              }
            })
          );
          watchers.push(
            scope.$watch(attrs.localDataSource + '.length', function (value) {
              if (value) {
                scope.loadPage(1);
              }
            })
          );
        }
        // ---------- disable watchers ---------- //
        scope.$on('$destroy', function () {
          watchers.forEach(function (watcher) {
            watcher();
          });
        });

        var listContainer = angular.element(element).find('ul')[0];
        // infinite scroll handler
        var loadFunction = adDebounce(function () {
          // This is for infinite scrolling.
          // When the scroll gets closer to the bottom, load more items.
          if (listContainer.scrollTop + listContainer.offsetHeight >= listContainer.scrollHeight - 300) {
            scope.loadNextPage();
          }
        }, 50);
        angular.element(listContainer).bind('mousewheel', function (event) {
          if (event.originalEvent && event.originalEvent.deltaY) {
            listContainer.scrollTop += event.originalEvent.deltaY;
            event.preventDefault();
            event.stopPropagation();
          }
          loadFunction();
        });
      }

      return {
        restrict: 'E',
        scope: true,
        link: linkFunction,
        templateUrl: 'infinitedropdown/infinitedropdown.tpl.html'
      };
    }]);


text:
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var plugin_1 = require('./plugin');
/**
 * @name Google Plus
 * @description
 * @usage
 * ```typescript
 * import { GooglePlus } from 'ionic-native';
 *
 *
 * ```
 */
var GooglePlus = (function () {
    function GooglePlus() {
    }
    /**
     * The login function walks the user through the Google Auth process.
     * @param options
     * @returns {Promise<any>}
     */
    GooglePlus.login = function (options) { return; };
    /**
     * You can call trySilentLogin to check if they're already signed in to the app and sign them in silently if they are.
     * @param options
     * @returns {Promise<any>}
     */
    GooglePlus.trySilentLogin = function (options) { return; };
    /**
     * This will clear the OAuth2 token.
     * @returns {Promise<any>}
     */
    GooglePlus.logout = function () { return; };
    /**
     * This will clear the OAuth2 token, forget which account was used to login, and disconnect that account from the app. This will require the user to allow the app access again next time they sign in. Be aware that this effect is not always instantaneous. It can take time to completely disconnect.
     * @returns {Promise<any>}
     */
    GooglePlus.disconnect = function () { return; };
    __decorate([
        plugin_1.Cordova()
    ], GooglePlus, "login", null);
    __decorate([
        plugin_1.Cordova()
    ], GooglePlus, "trySilentLogin", null);
    __decorate([
        plugin_1.Cordova()
    ], GooglePlus, "logout", null);
    __decorate([
        plugin_1.Cordova()
    ], GooglePlus, "disconnect", null);
    GooglePlus = __decorate([
        plugin_1.Plugin({
            pluginName: 'GooglePlus',
            plugin: 'cordova-plugin-googleplus',
            pluginRef: 'window.plugins.googleplus',
            repo: 'https://github.com/EddyVerbruggen/cordova-plugin-googleplus',
            platforms: ['Web', 'Android', 'iOS'],
            install: 'ionic plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid'
        })
    ], GooglePlus);
    return GooglePlus;
}());
exports.GooglePlus = GooglePlus;
//# sourceMappingURL=google-plus.js.map


text:
require 'spec_helper'

describe ClassTiming do
end


text:
<?php

$curl = curl_init("https://hooks.slack.com/services/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");
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

function isValidJSON($str) {
   json_decode($str);
   return json_last_error() == JSON_ERROR_NONE;
}
$json_params = file_get_contents("php://input");
if (strlen($json_params) > 0 && isValidJSON($json_params)) {
  $d = $decoded_params = json_decode($json_params);
  $name = $decoded_params->name;
  $phone = $d->phone;
  $email = $d->email;
  $descr = $d->descr;
  $verification = $d->verification;
} else {
  $name  = $_POST['name'];
  $phone = $_POST['phone'];
  $email = $_POST['email'];
  $descr = $_POST['descr'];
  $verification = $_POST['verification'];
}

header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: content-type, cache-control, x-http-method-override');

if ($verification != '14') {
  $output = "Verification failed. Please provide the correct verification answer.";
} else {

    $data = "payload=" . json_encode(array(
        "text" => "@piousbox Contact from wasya.co form. Name: " . $name . " phone: " . $phone . " email: " . $email . " descr: " . $descr
    ));
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
    $output = curl_exec($curl);
    curl_close($curl);
}

echo json_encode($output);


text:
//-----------------------------------------------------------------------
// <copyright file="PluginMenuFactory.cs" company="none">
// Copyright (c) kenny-nelson All Rights Reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Dodai.Plugins
{
    using System.Collections.Generic;
    using Dodai.Menus;

    /// <summary>
    /// プラグインメニューファクトリクラスです。
    /// </summary>
    public abstract class PluginMenuFactory : PluginFactory
    {
        /// <summary>
        /// コンストラクタです。
        /// </summary>
        /// <param name="factoryKey">ファクトリキーです。</param>
        protected PluginMenuFactory(string factoryKey)
            : base(factoryKey)
        {
        }

        /// <summary>
        /// メニューを取得します。
        /// </summary>
        /// <returns>メニューのインスタンスを返します。</returns>
        public virtual IEnumerable<Menu> GetMenus()
        {
            yield break;
        }
    }
}


text:
/*******************************************************************************
* Product of NIST/ITL Advanced Networking Technologies Division (ANTD).        *
*******************************************************************************/
package gov.nist.javax.sip.header;

import javax.sip.header.*;
import java.text.ParseException;

/**
 * the SIP-ETag header.
 *
 * @author Jeroen van Bemmel

 * @version 1.2 $Revision: 1.4 $ $Date: 2010-05-06 14:07:46 $
 * @since 1.2
 */
public class SIPETag extends SIPHeader implements SIPETagHeader , ExtensionHeader{

    /**
     * Comment for serialVersionUID
     */
    private static final long serialVersionUID = 3837543366074322107L;

    /**
     * entity tag field
     */
    protected String entityTag;

    /** Default constructor
     */
    public SIPETag() {
        super(NAME);
    }

    public SIPETag( String tag ) throws ParseException {
        this();
        this.setETag( tag );
    }

    /**
     * Encode into canonical form.
     * @return String
     */
    public StringBuilder encodeBody(StringBuilder retval) {
        return retval.append(entityTag);
    }

    /**
     * get the priority value.
     * @return String
     */
    public String getETag() {
        return entityTag;
    }

    /**
     * Set the priority member
     * @param etag String to set
     */
    public void setETag(String etag) throws ParseException {
        if (etag == null)
            throw new NullPointerException(
                "JAIN-SIP Exception,"
                    + "SIP-ETag, setETag(), the etag parameter is null");
        this.entityTag = etag;
    }

    /**
     * This method needs to be added for backwards compatibility to
     * avoid ClassCast exception on V1.1 applications
     *
     * @see javax.sip.header.ExtensionHeader#setValue(java.lang.String)
     */
    public void setValue(String value) throws ParseException {
        this.setETag(value);

    }
}


text:
<?php

namespace Phalcon\Session {

	class Exception extends \Phalcon\Exception {
	}
}


text:
var isUseHTTPs = false && !(!!process.env.PORT || !!process.env.IP);

var port = process.env.PORT || 9001;

try {
    var _port = require('./config.json').port;

    if (_port && _port.toString() !== '9001') {
        port = parseInt(_port);
    }
} catch (e) {}

var server = require(isUseHTTPs ? 'https' : 'http'),
    url = require('url'),
    path = require('path'),
    fs = require('fs');

function serverHandler(request, response) {
    try {
        var uri = url.parse(request.url).pathname,
            filename = path.join(process.cwd(), uri);

        if (filename && filename.search(/server.js|Scalable-Broadcast.js|Signaling-Server.js/g) !== -1) {
            response.writeHead(404, {
                'Content-Type': 'text/plain'
            });
            response.write('404 Not Found: ' + path.join('/', uri) + '\n');
            response.end();
            return;
        }

        var stats;

        try {
            stats = fs.lstatSync(filename);

            if (filename && filename.search(/demos/g) === -1 && stats.isDirectory()) {
                response.writeHead(200, {
                    'Content-Type': 'text/html'
                });
                response.write('<!DOCTYPE html><meta http-equiv="refresh" content="0;url=/demos/">');
                response.end();
                return;
            }
        } catch (e) {
            response.writeHead(404, {
                'Content-Type': 'text/plain'
            });
            response.write('404 Not Found: ' + path.join('/', uri) + '\n');
            response.end();
            return;
        }

        if (fs.statSync(filename).isDirectory()) {
            response.writeHead(404, {
                'Content-Type': 'text/html'
            });

            if (filename.indexOf('/demos/MultiRTC/') !== -1) {
                filename = filename.replace('/demos/MultiRTC/', '');
                filename += '/demos/MultiRTC/index.html';
            } else if (filename.indexOf('/demos/') !== -1) {
                filename = filename.replace('/demos/', '');
                filename += '/demos/index.html';
            } else {
                filename += '/demos/index.html';
            }
        }

        fs.readFile(filename, 'utf8', function(err, file) {
            if (err) {
                response.writeHead(500, {
                    'Content-Type': 'text/plain'
                });
                response.write('404 Not Found: ' + path.join('/', uri) + '\n');
                response.end();
                return;
            }

            try {
                var demos = (fs.readdirSync('demos') || []);

                if (demos.length) {
                    var h2 = '

';
                    var otherDemos = '
Check ' + (demos.length - 1) + ' other RTCMultiConnection-v3 demos' + h2 + '
';
                    demos.forEach(function(f) {
                        if (f && f !== 'index.html' && f.indexOf('.html') !== -1) {
                            otherDemos += '
' + f + ' (Source)
';
                        }
                    });
                    otherDemos += '

';

                    file = file.replace('
', otherDemos);
                }
            } catch (e) {}

            try {
                var docs = (fs.readdirSync('docs') || []);

                if (docs.length) {
                    var html = '
';
                    html += '
Documentation
';
                    html += '
';

                    docs.forEach(function(f) {
                        html += '
' + f + '
';
                    });

                    html += '

';

                    file = file.replace('
', html);
                }
            } catch (e) {}

            response.writeHead(200);
            response.write(file, 'utf8');
            response.end();
        });
    } catch (e) {
        response.writeHead(404, {
            'Content-Type': 'text/plain'
        });
        response.write('
Unexpected error:

' + e.stack || e.message || JSON.stringify(e));
        response.end();
    }
}

var app;

if (isUseHTTPs) {
    var options = {
        key: fs.readFileSync(path.join(__dirname, 'fake-keys/privatekey.pem')),
        cert: fs.readFileSync(path.join(__dirname, 'fake-keys/certificate.pem'))
    };
    app = server.createServer(options, serverHandler);
} else app = server.createServer(serverHandler);

app = app.listen(port, process.env.IP || '0.0.0.0', function() {
    var addr = app.address();

    if (addr.address === '0.0.0.0') {
        addr.address = 'localhost';
    }

    console.log('Server listening at ' + (isUseHTTPs ? 'https' : 'http') + '://' + addr.address + ':' + addr.port);
});

require('./Signaling-Server.js')(app, function(socket) {
    try {
        var params = socket.handshake.query;

        // "socket" object is totally in your own hands!
        // do whatever you want!

        // in your HTML page, you can access socket as following:
        // connection.socketCustomEvent = 'custom-message';
        // var socket = connection.getSocket();
        // socket.emit(connection.socketCustomEvent, { test: true });

        if (!params.socketCustomEvent) {
            params.socketCustomEvent = 'custom-message';
        }

        socket.on(params.socketCustomEvent, function(message) {
            try {
                socket.broadcast.emit(params.socketCustomEvent, message);
            } catch (e) {}
        });
    } catch (e) {}
});


text:
import gulp from 'gulp'
import runSequence from 'run-sequence'
import './gulp/build'
import './gulp/production'
import './gulp/utils'
import EXTRAS_GLOB from './gulp/build'

gulp.task('build', (done) => {
  runSequence('clean', ['webpack', 'nunjucks', 'css', 'extras'], done)
})

gulp.task('build:production', (done) => {
  runSequence('build', 'rev:replace', ['minify:html', 'minify:css', 'minify:js'],
              'purifycss', 'critical', done)
})

gulp.task('watch', ['build'], () => {
  const browserSync = require('browser-sync')
  browserSync({
    server: 'public',
    files: 'public/**/*',
    open: false
  })

  gulp.watch('src/static/js/**/*.js', ['webpack'])
  gulp.watch('src/static/css/**/*.css', ['css'])
  gulp.watch('src/templates/**/*.html', ['nunjucks'])
  gulp.watch(EXTRAS_GLOB, ['extras'])
})

gulp.task('default', ['build'])


text:
#include <QObject>
#include <QList>
#include <QImage>
#include <QString>
#include <commonutils.h>

#if defined(UNICODE)
#define TITLE_NAME  L"CPlore"
#else
#define TITLE_NAME  "CPlore"
#endif

typedef struct {
    QString server;
    uint    port;
    QString title;
} LoginInfo, *P2LoginInfo;

typedef struct {
    QString title;
    QString address;
    uint    port;
    QString user;
    QString password;
} PbInfo, *P2PbInfo;

class ResourceManager : public QObject
{
    Q_OBJECT
public:
    static ResourceManager& GetInstance()
    {
        static ResourceManager instance;
        return instance;
    }

    void FileDataInfoInit();
    void ResourceInit();

    void UpdateVariantSets(VarTree, int);
    void SetVariantSets(const QList<VarTree> &list) { m_treeList = list; }

    bool isShowOnExtensionScreen() const { return m_extension; }

    QList<VarTree> GetVariantSets() {return m_treeList; }
    QList<QImage> GetMenuIcons() { return m_iconMenuList; }
    QList<QImage> GetItemIcons() { return m_iconItemList; }
    QList<QImage> GetTouchIcons() { return m_iconTouchList; }

private:
    void SetMenuIcons(const QList<QImage> &list) { m_iconMenuList = list; }
    void SetItemIcons(const QList<QImage> &list) { m_iconItemList = list; }
    void SetTouchIcons(const QList<QImage> &list) { m_iconTouchList = list; }

private:
    explicit ResourceManager(QObject *parent = 0);
    ResourceManager(const ResourceManager&) : QObject(NULL) {}
    ResourceManager& operator=(const ResourceManager &);
    virtual ~ResourceManager();

public:
    QList<LoginInfo>        loginInfoList;
    QList<PbInfo>           pbInfoList;

private:
    QList<VarTree>          m_treeList;
    QList<QImage>           m_iconMenuList;
    QList<QImage>           m_iconItemList;
    QList<QImage>           m_iconTouchList;

    bool                    m_extension;

signals:

public slots:
};

#define ResourceManagerInst ResourceManager::GetInstance()
#define VariantSetsList     (ResourceManagerInst.GetVariantSets())
#define MenuIconsList       (ResourceManagerInst.GetMenuIcons())
#define ItemIconsList       (ResourceManagerInst.GetItemIcons())
#define TouchIconList       (ResourceManagerInst.GetTouchIcons())
#define LoginInfoList       (ResourceManagerInst.loginInfoList)
#define PbInfoList          (ResourceManagerInst.pbInfoList)

#endif // RESOURCEMANAGER_H


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Sber. Akad. Wiss. Wien, Math. -naturw. Kl. , Abt. 1 115: 1603 (1906)

#### Original name
Gloeocystidium clavuligerum Höhn. & Litsch., 1906

### Remarks
null


text: Just a test repo, nothing to see here


text:
from bitraider.cbexchange import cb_exchange
from bitraider.trader_template import runner
from bitraider.strategy import strategy

# bitraider
#
# Copyright (C) 2015 Eli Hickox
# Author: Eli Hickox <ehicko2@illinois.edu>
# URL: <http://github.com/ehickox2012/bitraider/>
#

"""
A Library of tools for algorithmic Bitcoin trading in Python. Bitraider includes a Coinbase
Exchange API wrapper, a CLI dashboard for backtesting or running a trader, and an abstract
strategy object that enables you to implement different trading techniques.

###Quickstart:

1. `$pip install bitraider`

2. Create a new directory in which your trader will reside
`$mkdir example_trader`
`$cd example_trader`

3. Create an `auth.txt` containing your Coinbase API key, secret, and passphrase on lines 1, 2, and 3 respectively.
`$vim auth.txt`

In auth.txt:
```
MY-API-KEY-HERE
MY-API-SECRET-HERE
MY-API-PASSPHRASE-HERE
```

4. Create an object that inherits from strategy. Implement all necessary functions. For Example:

    #!python
    from bitraider import strategy as strategy

    class my_strategy(strategy):

        def backtest_strategy(self, historical_data, start_btc, start_usd):
            for timeslice in historical_data:
                pass

5. Run: `$bitraider`

Package Organization
====================
The bitraider package contains the following subpackages

1. strategy: a module containing what a strategy class should look like

2. cbexchange: a module containing cb_exchange, a CoinbaseExchange API Wrapper

3. trader_template: a terminal-style dashboard for backtesting or running trading strategies.

Contributing
------------
`bitraider` [is on GitHub](https://github.com/ehickox2012/bitraider). Pull requests and bug reports are welcome.
"""

__version__ = '0.0.3'
"""The version of bitraider"""

__author__ = 'Eli Hickox <liquidchickenman.blogspot.com>'
"""The author of bitraider"""