100+ results for 'python forums'
Not the results you expected?
SabToSyno.py (https://github.com/SynoCommunity/spksrc.git) Python · 138 lines
Decorators.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 363 lines
17 // | Authors: Alexander Zhukov <alex@veresk.ru> Original port from Python |
18 // | Authors: Harry Fuecks <hfuecks@phppatterns.com> Port to PEAR + more |
19 // | Authors: Many @ Sitepointforums Advanced PHP Forums |
20 // +----------------------------------------------------------------------+
21 //
middleware.py (https://bitbucket.org/code4ghana/liquorfox.git) Python · 137 lines
install-macos.rst (https://github.com/anki/vector-python-sdk.git) ReStructuredText · 80 lines
21 ^^^^^^^^^^^^^^^^^^^
22 Python Installation
23 ^^^^^^^^^^^^^^^^^^^
27 brew update
29 2. Once Homebrew is installed and updated, type the following into the Terminal window to install the latest version of Python 3::
31 brew install python3
72 ^^^^^^^^^^^^^^^
74 Please see the :doc:`Troubleshooting </troubleshooting>` page for tips, or visit the `Anki Developer Forums <https://forums.anki.com/>`_ to ask questions, find solutions, or for general discussion.
76 ----
pycam_win32_postinstall.py (https://github.com/SebKuzminsky/pycam.git) Python · 90 lines
32 # There are some additional builtin functions available in the context of this script:
33 # https://docs.python.org/3/distutils/builtdist.html#the-postinstallation-script
34 # We use the following functions:
35 # create_shortcut
50 # create a start menu item for pycam
51 PYTHON_EXE = os.path.join(distutils.sysconfig.EXEC_PREFIX, "pythonw.exe")
52 # surround the start script with quotes to avoid space-issues
53 START_SCRIPT = '"%s"' % os.path.join(distutils.sysconfig.EXEC_PREFIX, "Scripts", "pycam-loader.py")
55 SHARE_DIR = os.path.join(distutils.sysconfig.PREFIX, "share", "pycam")
57 PYTHON_DOC_DIR = os.path.join(SHARE_DIR, "doc")
59 ICON_FILE = os.path.join(SHARE_DIR, "pycam.ico")
README.org (https://github.com/kjordahl/Watts-Up--logger.git) Org · 72 lines
1 * INTRODUCTION
3 This is a simple Python utility for logging data from a [[https://www.wattsupmeters.com/secure/products.php?pn=0&wai=384&more=4][Watts Up? Pro]]
4 power meter. Documentation for the serial port interface for the
5 meter is available in [[https://www.wattsupmeters.com/secure/downloads/CommunicationsProtocol090824.pdf][this PDF file]].
8 available for [[https://www.wattsupmeters.com/secure/support.php][download from watts up?]], and they sell a [[https://orders.wattsupmeters.com/store/home.php?cat=26][realtime
9 version for Windows]] for $72.95. One example I found of reading from the Watts
10 Up? Pro in Python was [[http://www.wattzon.com/forums/posts/80][this script]].
12 The program will by default assume the most common device name for
getting-the-battery-level-and-battery-state-of-the-device.py (https://github.com/tdamdouni/Pythonista.git) Python · 332 lines
create_packagelist.py (https://bitbucket.org/vinitkme/automatta.git) Python · 157 lines
faq.php (https://github.com/jnwhiteh/aichallenge.git) PHP · 69 lines
4 can I get some help or information?</p>
5 <p><strong>Answer:</strong> We welcome your post on the
6 <a href="http://ai-contest.com/forums">forums</a>!</p>
7 <p><strong>Question:</strong> What is the relationship between Google and the
8 University of Waterloo Computer Science Club?</p>
20 <p><strong>Answer:</strong> Check out the <a href="/resources.php">articles and
21 tutorials section</a>, where you will find a couple strategy guides, as well
22 as the <a href="/forums/">forums</a>.</p>
23 <p><strong>Question:</strong> Do we have to submit PlanetWars.java/
24 PlanetWars.cc? Can we have more source files than the ones that come in
33 them together. Check out the email you get after you submit a starter package
34 to see the exact commands that the auto-compile script uses to compile your
35 code. Post to the forums if you need any help, and we'll be glad to address
36 your specific case.</p>
37 <p><strong>Question:</strong>May I modify the provided code?</p>
detail.html (https://github.com/zmrenwu/pythonzh.cn.git) HTML · 169 lines
3 {% load comments %}
4 {% load forum_tags %}
5 {% block title %}{{ forum_user.nickname }}的主页 - Pythonzhcn{% endblock title %}
6 {% block main %}
7 <div class="col-md-4">
12 <div class="media-body">
13 <div><span class="font-weight-bold">{{ forum_user.nickname }}</span></div>
14 <div class="text-muted mt-1">Pythonzhcn 第 {{ forum_user.pk }} 号会员</div>
15 <div class="text-muted">加入于 {{ forum_user.date_joined }}</div>
16 </div>
analyze.py (https://github.com/sialan/autonomous-sprayer.git) Python · 87 lines
7 A gode example is at:
8 http://forums.reprap.org/file.php?12,file=565
10 """
12 from __future__ import absolute_import
13 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
14 import __init__
starter_project_list.md (https://gitlab.com/asmjahid/pinax) Markdown · 85 lines
setup.py (https://github.com/gmcquillan/pycassa.git) Python · 117 lines
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
28 __version__ = '.'.join(map(str, pycassa.version))
30 long_description = """pycassa is a python client library for Apache Cassandra with the following features:
32 1. Auto-failover single or thread-local connections
76 else:
77 print """
78 `setup.py doc` is not supported for this version of Python.
80 Please ask in the user forums for help.
89 maintainer = 'Tyler Hobbs',
90 maintainer_email = 'pycassa.maintainer@gmail.com',
91 description = 'Python client library for Apache Cassandra',
92 long_description = long_description,
93 url = 'http://github.com/pycassa/pycassa',
heapsize.h (https://github.com/Nonpython/projects.git) C Header · 33 lines
2 # This file is Copyright 2010 Dean Hall.
3 #
4 # This file is part of the Python-on-a-Chip program.
5 # Python-on-a-Chip is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
7 #
8 # Python-on-a-Chip is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 #if __C30_VERSION__ == 325
19 // v. 3.25 of the compiler reserves a 1K buffer for printf. And another 1K buffer somewhere,
20 // it seems, perhaps for snprintf? Horrible. See http://www.microchip.com/forums/m538918.aspx
21 // for some details. The next version is supposed to reduce this buffer size.
22 #define HS 4800
README.rst (https://github.com/BenAtWide/django-smileys.git) ReStructuredText · 100 lines
6 image of your choosing. There's gotta be something useful in that, right?
8 This application can make your blog, forums, photo galleries, user comments,
9 etc a little more interesting, and it's very simple to install. Free icon sets
10 plague the Internet, and you can choose whatever icons you'd like to use!
37 You can download the package from the `CheeseShop
38 <http://pypi.python.org/pypi/django-smileys/>`_ or use one of the following
39 commands::
C-Collecting-Cards.py (https://bitbucket.org/rndblnch/google-code-jam) Python · 140 lines
1 #!/usr/bin/env python
2 # -*- coding: utf8 -*-
20 PokeCraft: The Gathering.
21 You've mastered the rules! You've crafted balanced, offensive, and defensive
22 decks! You argue the merits of various cards on Internet forums!
23 You compete in tournaments! And now, as they just announced their huge new set
24 of cards coming in the year 2010, you've decided you'd like to collect every
setup.py (https://github.com/pombredanne/snapboard.git) Python · 57 lines
1 #!/usr/bin/python
2 from distutils.core import setup
3 setup(
19 * BBCode, Markdown and Textile supported for post formatting
20 * BBCode toolbar
21 * Multiple forums with four types of permissions
22 * Forum permissions can be assigned to custom groups of users
23 * Group administration can be delegated to end users on a per-group basis
39 'License :: OSI Approved :: New BSD License',
40 'Operating System :: OS Independent',
41 'Programming Language :: Python',
42 'Topic :: Communications :: BBS',
43 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Message Boards',
NoIronPython.html (https://gitlab.com/SplatoonModdingHub/PTVS) HTML · 58 lines
1 <!DOCTYPE html>
2 <!--
3 Python Tools for Visual Studio
4 Copyright(c) Microsoft Corporation
5 All rights reserved.
21 <head>
22 <meta charset="utf-8" />
23 <title>Python Tools for Visual Studio</title>
24 <link rel="stylesheet" href="../PythonTools/ReadmeStyle.css" type="text/css" />
27 <body>
28 <h1 class="top">We didn't find IronPython</h1>
29 <p>
30 This project is configured to run with IronPython, which is
52 <p class="hint">
53 This link will take you to our homepage, where you can find more
54 documentation, discussion forums, and updates for Python Tools
55 for Visual Studio.
56 </p>
README.md (https://github.com/pedrosorio/aichallenge.git) Markdown · 81 lines
24 Go to the `aichallenge/ants` directory and do:
26 ./playgame.py --end_wait=0.25 --verbose --log_dir game_logs --turns 100 --map_file maps/symmetric_maps/symmetric_10.map "python dist/sample_bots/python/HunterBot.py" "python dist/sample_bots/python/LeftyBot.py" "python dist/sample_bots/python/HunterBot.py" /path/to/your/MyBot
28 To upload a submission you only need to zip all the lisp-files: "`zip
vector3index.py (https://github.com/eagleapex/BBstuff.git) Python · 277 lines
29 except:
30 pass
31 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
32 import __init__
39 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
40 __credits__ = 'Nophead <http://forums.reprap.org/profile.php?12,28>\nArt of Illusion <http://www.artofillusion.org/>'
41 __date__ = '$Date: 2008/21/04 $'
42 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
gyrotest.py (https://gitlab.com/MikeDabrowski/PiRobot) Python · 40 lines
1 #!/usr/bin/env python
2 # BRICKPI LEGO EV3 GYRO SENSOR EXAMPLE.
3 ############################################
23 #
24 # You can learn more about BrickPi here: http://www.dexterindustries.com/BrickPi
25 # Have a question about this example? Ask on the forums here: http://forum.dexterindustries.com/c/brickpi
27 from BrickPi import * #import BrickPi.py file to use BrickPi operations
pair_up_reads.py (https://github.com/vanbug/denovo-assembly-tutorial.git) Python · 84 lines
1 #!/usr/bin/env python
3 # based on this SeqAnswers thread
4 # http://seqanswers.com/forums/showthread.php?t=6140
5 # original written by Peter Cock
7 import sys
9 from Bio.SeqIO.QualityIO import FastqGeneralIterator #Biopython 1.51 or later
11 ##########################################################
description.py (https://github.com/nuxleus/cherokee-webserver-distribution.git) Python · 53 lines
install_dependencies.sh (https://github.com/repos-c-cpp/openFrameworks.git) Shell · 26 lines
1 apt-get update
2 apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev gstreamer0.10-ffmpeg libglew1.5-dev libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev libgtk2.0-dev libjack-dev python-lxml python-argparse
3 ARCH=$(uname -m)
4 if [ "$ARCH" = "x86_64" ]; then
14 if [ $? != 0 ]; then
15 echo "there has been a problem compiling Debug OF library"
16 echo "please report this problem in the forums"
17 exit
18 fi
21 if [ $? != 0 ]; then
22 echo "there has been a problem compiling Release OF library"
23 echo "please report this problem in the forums"
24 fi
25 chown -R $ID:$GROUP_ID obj ../../lib/${LIBSPATH}/*
README.rst (https://github.com/dcramer/django-data-tools.git) ReStructuredText · 48 lines
README.rst (https://github.com/turnkeylinux/confconsole.git) ReStructuredText · 134 lines
109 apt-get install confconsole
111 If you have problems or questions, please post on our `support forums`_
112 (requires free website user account).
117 The plugins system allows support for additional functionality via simply
118 dropping a(n appropriately coded) python3 plugin file within the Confconsole
119 file hierarchy. We aim to include more new functionality via this in coming
120 releases.
132 .. _System settings: ./docs/System_settings.rst
133 .. _TurnKey Linux Appliances: https://www.turnkeylinux.org/all
134 .. _support forums: https://www.turnkeylinux.org/forum/support
get-shit-done.py (https://github.com/sergray/get-shit-done.git) Python · 104 lines
toc.yml (https://github.com/MicrosoftDocs/azure-docs.zh-cn.git) YAML · 114 lines
25 href: call-endpoint-nodejs.md
26 - name: 使用 Python
27 href: call-endpoint-python.md
28 - name: SDK 中 IsInRole 中的声明
29 items:
83 - name: Python
84 href: /python/api/azure-cognitiveservices-search-customsearch/?view=azure-python
85 - name: Node.js
86 href: /javascript/api/@azure/cognitiveservices-customsearch/?view=azure-node-latest
94 href: 'https://azure.microsoft.com/pricing/details/cognitive-services/bing-custom-search/'
95 - name: UserVoice
96 href: 'https://cognitive.uservoice.com/forums/598147-bing-custom-search-api'
97 - name: Stack Overflow
98 href: 'https://stackoverflow.com/search?q=bing+custom+search'
refine_search_page.py (https://github.com/AlinT/sumo-tests.git) Python · 65 lines
1 #!/usr/bin/env python
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
24 _kb_tab = (By.CSS_SELECTOR, 'div#search-tabs > ul > li:nth-child(1) > a')
25 _support_questions_tab = (By.CSS_SELECTOR, 'div#search-tabs > ul > li:nth-child(2) > a')
26 _forums_tab = (By.CSS_SELECTOR, 'div#search-tabs > ul > li:nth-child(3) > a')
27 _asked_by_box = (By.ID, 'id_asked_by')
28 _search_results_list = (By.CSS_SELECTOR, 'div.result.question')
55 search_page_obj.is_the_current_page
57 def do_search_on_discussion_forums(self, search_query, search_page_obj):
58 self.selenium.find_element(*self._forums_tab).click()
facebook_keys_twextra.php (https://github.com/raj4126/twextra.git) PHP · 129 lines
README.rst (https://github.com/benjaoming/django-stopforumspam.git) ReStructuredText · 126 lines
36 2. Add this to ``settings.MIDDLEWARE_CLASSES``::
38 'stopforumspam.middleware.StopForumSpamMiddleware'
40 3. Then add this to ``INSTALLED_APPS``::
42 'stopforumspam'
44 4. And run::
123 and sync them with a local file, you can add::
125 0 2 * * * wget -O /tmp/listed_ip_7.zip http://www.stopforumspam.com/downloads/listed_ip_7.zip ; python /your/project/path/manage.py sfsupdate -q
Numbers in List.ipynb (https://gitlab.com/TravBus/CS_101) Jupyter · 100 lines
9 "outputs": [],
10 "source": [
11 "# Numbers in lists by SeanMc from forums\n",
12 "# define a procedure that takes in a string of numbers from 1-9 and\n",
13 "# outputs a list with the following parameters:\n",
79 "metadata": {
80 "kernelspec": {
81 "display_name": "Python 3",
82 "language": "python",
83 "name": "python3"
84 },
85 "language_info": {
86 "codemirror_mode": {
87 "name": "ipython",
88 "version": 3
89 },
sfsupdate.py (https://github.com/benjaoming/django-stopforumspam.git) Python · 126 lines
16 class Command(BaseCommand):
17 help = 'Updates the database with the latest IPs from stopforumspam.com'
19 def add_arguments(self, parser):
91 response = compat.urllib.urlopen(sfs_settings.SOURCE_ZIP)
92 # Necessary because ZipFile needs to do a seek() call on the
93 # file object which HttpResponse in python3 doesn't support.
94 fileobject = BytesIO(response.read())
95 z = zipfile.ZipFile(fileobject)
help.py (https://github.com/sialan/autonomous-sprayer.git) Python · 82 lines
18 ====Skeinforge Overview====
19 A general description of skeinforge, has answers to frequently asked questions and has many links to skeinforge, fabrication and python pages. It is also the help page of the skeinforge tool.
21 ===Forums===
42 from __future__ import absolute_import
43 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
44 import __init__
dafx_main.py (https://bitbucket.org/slegroux/dafx.git) Python · 101 lines
install_dependencies.sh (https://github.com/gmacd/openFrameworks.git) Shell · 28 lines
1 ## thanks to Claudio for details on packages to install on fedora
3 yum install freeglut-devel alsa-lib-devel libXmu-devel libXxf86vm-devel gcc-c++ libraw1394-devel gstreamer-devel gstreamer-plugins-base-devel libudev-devel libtheora-devel libvorbis-devel openal-soft-devel libsndfile-devel python-lxml gstreamer-devel glew-devel flac-devel freeimage-devel cairo-devel jack-audio-connection-kit-devel
5 ARCH=$(uname -m)
16 if [ $? != 0 ]; then
17 echo "there has been a problem compiling Debug OF library"
18 echo "please report this problem in the forums"
19 exit
20 fi
23 if [ $? != 0 ]; then
24 echo "there has been a problem compiling Release OF library"
25 echo "please report this problem in the forums"
26 fi
27 chown -R $ID:$GROUP_ID obj ../../lib/${LIBSPATH}/*
rss.py (https://github.com/astronouth7303/tgg-BotSteve.git) Python · 194 lines
1 #!/usr/bin/env python
2 """
3 rss.py - The Geek Group RSS Feedreader Phenny Module
65 outputString = 'In the last hour, there have been '
66 outputString += str( len(titlesChanged) )
67 outputString += " new posts on the Geek Group forums ( http://goo.gl/t0vze ). New posts made by: "
68 for eachPost in titlesChanged:
69 outputString += eachPost
setup.py (https://github.com/benjaoming/django-stopforumspam.git) Python · 36 lines
2 from setuptools import setup
4 from stopforumspam import __version__
12 'License :: OSI Approved :: BSD License',
13 'Operating System :: OS Independent',
14 'Programming Language :: Python',
15 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
16 'Topic :: Software Development',
22 setup(
23 name='stopforumspam',
24 description='Django middleware for blocking IPs listed in stopforumspam.com',
31 'Django>=1.9',
32 ],
33 url='https://github.com/benjaoming/django-stopforumspam',
34 classifiers=CLASSIFIERS,
35 include_package_data=True,
models.py (http://plugs.googlecode.com/svn/trunk/) Python · 155 lines
1 #! /usr/bin/env python
2 #coding=utf-8
3 from uliweb.orm import *
37 description = Field(TEXT, verbose_name='????')
38 ordering = Field(int, verbose_name='??',default = 1)
39 category = Reference('forumcategory', verbose_name='????', collection_name='forums', required=True)
40 created_on = Field(datetime.datetime, verbose_name='????', auto_now_add=True)
41 updated_on = Field(datetime.datetime, verbose_name='????', auto_now_add=True, auto_now=True)
46 last_reply_on = Field(datetime.datetime, verbose_name='??????')
47 last_post_user = Reference('user', verbose_name='?????', collection_name="last_post_user_forums")
48 last_post = Field(int, verbose_name='????id')
49 managers = ManyToMany('user', verbose_name='???')
README.rst (https://github.com/alexa/alexa-skills-kit-sdk-for-python.git) ReStructuredText · 115 lines
3 ====================================================
4 ask-sdk-jinja-renderer is an SDK package for supporting template responses for skill developers, when built using
5 ASK Python SDK. It provides jinja framework as a template renderer to render the response loaded from the
6 template and inject the data passed and finally deserialize to custom response format.
20 ~~~~~~~~~~~~~~~~~~~~~~~
22 .. code-block:: python
24 from ask_sdk_core.skill_builder import SkillBuilder
90 Installation
91 ~~~~~~~~~~~~~~~
92 Assuming that you have Python and ``virtualenv`` installed, you can
93 install the package from PyPi as follows:
ui-kivy.py (https://github.com/tdamdouni/Pythonista.git) Python · 168 lines
1 # https://gist.github.com/balachandrana/4e9accfc894785682f230c54dc5da816#file-ui-py
3 # https://forum.omz-software.com/topic/3964/unipage-as-a-bridge-between-kivy-and-pythonista/5
5 from kivy.uix.floatlayout import FloatLayout
43 @property
44 def kivy_pos(self):
45 """Convert a Pythonista ui frame into a Kivy x, y position"""
46 x, y, _, _ = self.frame
47 return x * self.xratio, y * self.yratio
49 @property
50 def kivy_size(self):
51 """Convert a Pythonista ui frame into a Kivy width, height size"""
52 _, _, w, h = self.frame
53 return w * self.xratio, h * self.yratio
models.py (https://github.com/honmaple/maple-bbs.git) Python · 180 lines
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 # **************************************************************************
18 from flask_maple.models import ModelMixin, ModelTimeMixin, ModelUserMixin
19 from forums.api.forums.models import Board
20 from forums.api.user.models import User
21 from forums.common.models import CommonUserMixin
22 from forums.extension import db
23 from forums.count import Count
24 from forums.jinja import safe_clean, markdown
cluster.py (https://github.com/bwaldmann/twitter_geolocation.git) Python · 159 lines
__init__.py (https://gitlab.com/manoj-makkuboy/vikuit) Python · 135 lines
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
59 from handlers.module.community.CommunityMove import *
60 from handlers.module.community.CommunityDelete import *
61 # community forums
62 from handlers.module.community.CommunityForumList import *
63 from handlers.module.community.CommunityForumEdit import *
64 from handlers.module.community.CommunityForumView import *
65 from handlers.module.community.CommunityForumReply import *
66 from handlers.module.community.CommunityForumSubscribe import *
67 from handlers.module.community.CommunityForumDelete import *
68 from handlers.module.community.CommunityThreadEdit import *
96 from handlers.module.user.UserPromote import *
97 from handlers.module.user.UserEvents import *
98 from handlers.module.user.UserForums import *
100 # Blogging
skeinforge_help.py (https://github.com/bitboxelectronics/R2C2_Software.git) Python · 68 lines
6 from __future__ import absolute_import
7 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
8 import __init__
40 settings.HelpPage().getFromNameSubName('Skeinforge Overview', self, 'skeinforge_application.skeinforge.html')
41 settings.LabelSeparator().getFromRepository(self)
42 settings.LabelDisplay().getFromName('- Forums -', self )
43 settings.LabelDisplay().getFromName('Bits from Bytes Software Board:', self )
44 settings.HelpPage().getFromNameAfterWWW('bitsfrombytes.com/fora/user/index.php?board=4.0', 'Bits from Bytes Software Board', self )
46 settings.HelpPage().getFromNameAfterHTTP('groups.google.com/group/makerbot', 'Makerbot Operators', self )
47 settings.LabelDisplay().getFromName('Skeinforge Contributions Thread:', self )
48 settings.HelpPage().getFromNameAfterHTTP('dev.forums.reprap.org/read.php?12,27562', 'Skeinforge Contributions Thread', self )
49 settings.LabelDisplay().getFromName('Skeinforge Settings Thread:', self )
50 settings.HelpPage().getFromNameAfterHTTP('dev.forums.reprap.org/read.php?12,27434', 'Skeinforge Settings Thread', self )
Makefile (https://gitlab.com/purdueNlp/DRaiL) Makefile · 22 lines
3 # targets depend on your machine
4 #all: argmining-mac 4forums-mac
5 all: argmining-linux 4forums-linux
10 argmining-linux: di_graph.h core_argmining.h
11 c++ $(FLAGS) -Wno-deprecated-register -shared -fPIC `python -m pybind11 --includes` core_argmining.cpp -o core_argmining.so -I/usr/include/python2.7 -lpython2.7
14 4forums-mac: di_graph.h core_4forums.h
15 c++ $(FLAGS) -Wno-deprecated-register -shared -undefined dynamic_lookup `python -m pybind11 --includes` core_4forums.cpp -o core_4forums.so
17 4forums-linux: di_graph.h core_4forums.h
18 c++ $(FLAGS) -Wno-deprecated-register -shared -fPIC `python -m pybind11 --includes` core_4forums.cpp -o core_4forums.so -I/usr/include/python2.7 -lpython2.7
xbmc.sh.in (https://github.com/Giftie/xbmc.git) Autoconf · 146 lines
configure.in (https://bitbucket.org/ultra_iter/vim-qt.git) Autoconf · 3806 lines
898 if test "${vi_cv_var_python_version}" = "1.4"; then
899 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
900 else
901 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
902 fi
903 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
904 dnl remove -ltermcap, it can conflict with an earlier -lncurses
905 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
911 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME=\\\"${vi_cv_path_python_pfx}\\\""
912 else
913 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME=\\\"${vi_cv_path_python_pfx}\\\""
914 fi
915 PYTHON_SRC="if_python.c"
923 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
924 fi
925 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
927 dnl On FreeBSD linking with "-pthread" is required to use threads.
rsi.py (https://github.com/sagat/emesene.git) Python · 82 lines
1 # -*- coding: utf-8 -*-
2 #
3 # papyon - a python client library for Msn
4 #
5 # Copyright (C) 2007 Johann Prieur <johann.prieur@gmail.com>
58 if m.get_content_type().split('/')[1] == 'vnd.ms-msnipg':
59 # FIXME : process the IPG data
60 # http://www.amsn-project.net/forums/viewtopic.php?p=21744
61 # set a mobile sender flag
62 return
config.tmpl (https://bitbucket.org/fyelles/sick-beard.git) Go Template · 33 lines
19 <tr><td class="infoTableHeader">Python Version: </td><td class="infoTableCell">$sys.version[:120]</td></tr>
20 <tr class="infoTableSeperator"><td class="infoTableHeader">Homepage </td><td class="infoTableCell"><a href="http://www.sickbeard.com/">http://www.sickbeard.com/</a></td></tr>
21 <tr><td class="infoTableHeader">Forums </td><td class="infoTableCell"><a href="http://sickbeard.com/forums/">http://sickbeard.com/forums/</a></td></tr>
22 <tr><td class="infoTableHeader">Source </td><td class="infoTableCell"><a href="https://github.com/midgetspy/Sick-Beard/">https://github.com/midgetspy/Sick-Beard/</a></td></tr>
23 <tr><td class="infoTableHeader">Bug Tracker &<br/> Windows Builds </td><td class="infoTableCell"><a href="http://code.google.com/p/sickbeard/">http://code.google.com/p/sickbeard/</a></td></tr>
PageCommunity.py (https://github.com/cherokee/web.git) Python · 78 lines
1 # -*- Mode: python; coding: utf-8 -*-
3 #
35 MAILING_P1 = 'The primary discussion forum for Cherokee community members is the <a href="http://lists.octality.com/">Cherokee Project\'s mailing lists</a>.'
36 MAILING_P2 = 'If you prefer a forums interface, you can interact with other Cherokee users and developers through the <a href="/forums.html">Forums interface</a> to our mailing lists.'
37 IRC_P1 = 'The Cherokee developers, as well as many members of the Cherokee user community, can be found online in the <a href="irc://irc.freenode.net/cherokee">#cherokee</a> IRC channel on the FreeNode IRC Network (servers: irc.freenode.net).'
38 SOCIAL_P1 = 'The Cherokee project has also presence in the following social networks. Please, do not hesitate to join us!'
52 # Content
53 box = CTK.Box ({'class': 'community-lists'})
54 box += CTK.RawHTML ('<h2>Mailing Lists / Forums</h2>')
55 box += CTK.RawHTML ('<p>%s</p>' %(MAILING_P1))
56 box += CTK.RawHTML ('<p>%s</p>' %(MAILING_P2))
context.t (git://pkgs.fedoraproject.org/ack) Perl · 228 lines
resume.php (https://bitbucket.org/pdizz/pdizz-site.git) PHP · 84 lines
22 </ul>
23 </li>
24 <li>Python, JSON, XML, HTML, CSS</li>
25 <li>Linux (Ubuntu), Apache</li>
26 </ul>
70 <li>Reddit.com API client using object-oriented PHP with JSON</li>
71 <li>Parses API data-structure to PHP objects</li>
72 <li>Retrieve information from sub-reddits (forums), posts, and comments</li>
73 </ul>
74 </li>
README.md (https://github.com/ZachWick/sauce-connect-geriatric.git) Markdown · 51 lines
17 For more info: http://saucelabs.com/products/docs/sauce-connect<br />
18 Questions: http://saucelabs.com/forums
20 Code structure
27 The script depends in both
28 [simplejson](http://pypi.python.org/pypi/simplejson/) and
29 [plink](http://www.chiark.greenend.org.uk/~sgtatham/putty/), they are
30 downloaded and added (licenses included) to the final zip during the build,
50 For more info: http://saucelabs.com/products/docs/sauce-connect<br />
51 Questions: http://saucelabs.com/forums
Makefile (https://gitlab.com/purdueNlp/DRaiL) Makefile · 64 lines
7 LOCAL_INIT = true
9 TARGET = 4forums
10 DIRECTORY = data/
11 FE_DIR = .
55 local:
56 python ../../run_debates_4forums.py -d $(DIRECTORY) -r $(RULES) -c $(CONFIG) -f $(FE_DIR) -n $(NET_DIR) --savedir $(SAVE_DIR) --issue $(ISSUE) -p $(PICKLE_D) $(BERT) $(INFERENCE) -m local --constraints --train_only -g $(GPUINDEX) $(ADDD)
57 global:
58 python ../../run_debates_4forums.py -d $(DIRECTORY) -r $(RULES) -c $(CONFIG) -f $(FE_DIR) -n $(NET_DIR) --savedir $(SAVE_DIR) --issue $(ISSUE) -p $(PICKLE_D) $(BERT) $(INFERENCE) -m global --lrate $(L_RATE) --constraints -g $(GPUINDEX) $(ADDD) --logging_config ../../logging_conf.json --we_file $(WE_FILE) --loss hinge $(AC) $(LOCAL_OPT_INIT)
60 rm -r $(SAVE_DIR)
61 cp -r $(PRET_BERT) $(SAVE_DIR)
62 python ../../run_debates_4forums.py -d $(DIRECTORY) -r $(RULES) -c $(CONFIG) -f $(FE_DIR) -n $(NET_DIR) --savedir $(SAVE_DIR) --issue $(ISSUE) -p $(PICKLE_D) $(BERT) $(INFERENCE) -m global --lrate $(L_RATE) --constraints --continue_from_checkpoint -g $(GPUINDEX) $(ADDD) --logging_config ../../logging_conf.json --we_file $(WE_FILE) --loss hinge $(AC) $(LOCAL_OPT_INIT)
63 global-debug-cpu:
64 python ../../run_debates_4forums.py -d $(DIRECTORY) -r $(RULES) -c $(CONFIG) -f $(FE_DIR) -n $(NET_DIR) --savedir $(SAVE_DIR) --issue $(ISSUE) $(BERT) $(INFERENCE) -m global --lrate $(L_RATE) --constraints --debug $(ADDD) --logging_config ../../logging_conf.json --we_file $(WE_FILE) --loss hinge $(AC) $(LOCAL_OPT_INIT)
vimrc.commands.vim (https://github.com/bf4/vimfiles.git) Vim Script · 60 lines
14 "for ruby, autoindent with two spaces, always expand tabs
15 autocmd FileType ruby,haml,eruby,yaml,html,javascript,sass,cucumber set ai sw=2 sts=2 et
16 autocmd FileType python set sw=4 sts=4 et
18 autocmd! BufRead,BufNewFile *.sass setfiletype sass
46 " - orange in insert mode.
47 " Tip found there:
48 " http://forums.macosxhints.com/archive/index.php/t-49708.html
49 " It works at least with: xterm rxvt eterm
50 " But do nothing with: gnome-terminal terminator konsole xfce4-terminal
PingMonitor.py (https://github.com/ifreecarve/MOOS-python-utils.git) Python · 120 lines
list.html
(https://bitbucket.org/jice/libtcod/)
HTML · 37 lines
✨ Summary
This HTML code generates a documentation page for libtcod, a container library. It displays information about the library’s features and functionality, including links to related pages and tutorials. The page also includes a filter section to categorize content by programming language, and a footer with copyright information and links to external resources.
This HTML code generates a documentation page for libtcod, a container library. It displays information about the library’s features and functionality, including links to related pages and tutorials. The page also includes a filter section to categorize content by programming language, and a footer with copyright information and links to external resources.
20 <li><a onclick="link('list_iterator.html')">6.5. Iterators</a></li>
21 </ul></div>
22 <p>This is a fast, lightweight and generic container, that provides array, list and stack paradigms.<br />Note that this module has no python wrapper. Use python built-in containers instead.<br /> </p>
24 </div></div>
27 This file has been generated by doctcod.</p>
28 <p><table width='100%'><tr><td><a href="http://doryen.eptalys.net/libtcod">libtcod website</a></td>
29 <td><a href="http://doryen.eptalys.net/forum/index.php?board=12.0">libtcod on Roguecentral forums</a></td>
30 <td><a href="http://www.youtube.com/watch?v=PY9lJnVQbXs&feature=PlayList&p=553E3D00A1460331&playnext_from=PL&index=0&playnext=1">libtcod HOWTO video tutorials</a></td></tr></table></p>
31 </div></div>
generate-quorum-matrix.py (https://github.com/loki-project/loki.git) Python · 173 lines
RELEASE.rst (https://github.com/mongodb/mongo-python-driver.git) ReStructuredText · 102 lines
20 https://semver.org/
21 https://www.python.org/dev/peps/pep-0440/
23 Deprecation
34 1. PyMongo is tested on Evergreen. Ensure the latest commit are passing CI
35 as expected: https://evergreen.mongodb.com/waterfall/mongo-python-driver.
36 To test locally, ``python3 setup.py test`` will build the C extensions and
37 test. ``python3 tools/clean.py`` will remove the extensions,
38 and then ``python3 setup.py --no_ext test`` will run the tests without
39 them. You can also run the doctests: ``python3 setup.py doc -t``.
41 2. Check Jira to ensure all the tickets in this version have been completed.
zpt.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 172 lines
107 </SPAN>
108 <MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
109 <!-- highligh python expressions -->
110 <!--
111 <SEQ TYPE="LITERAL2" DELEGATE="python::MAIN"
112 AT_LINE_START="FALSE">python:</SEQ>
113 -->
114 <KEYWORDS>
118 <KEYWORD4>not</KEYWORD4>
119 <KEYWORD4>path</KEYWORD4>
120 <KEYWORD4>python</KEYWORD4>
121 <KEYWORD4>string</KEYWORD4>
122 <KEYWORD4>structure</KEYWORD4>
setup.py (https://github.com/Deepwalker/mongomodels.git) Python · 88 lines
1 #!/usr/bin/env python
3 import sys
59 else:
60 print """
61 `setup.py doc` is not supported for this version of Python.
63 Please ask in the user forums for help.
84 "Operating System :: Microsoft :: Windows",
85 "Operating System :: POSIX",
86 "Programming Language :: Python",
87 "Topic :: Database"],
88 cmdclass={"doc": GenerateDoc})
vector3index.py (https://github.com/sialan/autonomous-sprayer.git) Python · 262 lines
29 except:
30 pass
31 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
32 import __init__
39 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
40 __credits__ = 'Nophead <http://forums.reprap.org/profile.php?12,28>\nArt of Illusion <http://www.artofillusion.org/>'
41 __date__ = '$Date: 2008/21/04 $'
42 __license__ = 'GPL 3.0'
getmacs.py (https://github.com/BillTheBest/FooNMS.git) Python · 75 lines
1 #!/usr/bin/python
2 #http://pysnmp.sourceforge.net/docs/4.x/index.html#SYNCH-ONELINER-APPS
7 # functions
8 def hexify( octets ):
9 return ":".join( [ '%x'%(ord(c)) for c in octets ]) #http://www.velocityreviews.com/forums/t320222-octet-string-conversion.html
11 def grabmacs (host,community): #gets a list of mac addresses, returns a dict of macid and mac address
skeinforge_help.py (https://github.com/eagleapex/BBstuff.git) Python · 66 lines
6 from __future__ import absolute_import
7 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
8 import __init__
42 settings.HelpPage().getFromNameSubName('Skeinforge Overview', self, 'skeinforge_application.skeinforge.html')
43 settings.LabelSeparator().getFromRepository(self)
44 settings.LabelDisplay().getFromName('- Forums -', self )
45 settings.LabelDisplay().getFromName('Skeinforge/SFACT Forum:', self )
46 settings.HelpPage().getFromNameAfterWWW('forums.reprap.org/list.php?154', 'Skeinforge/SFACT', self )
48 settings.HelpPage().getFromNameAfterHTTP('oreilly.com/catalog/0636920021537', 'RepRap Book', self )
49 settings.LabelDisplay().getFromName('moving to Skeinforge 40 and later:', self )
50 settings.HelpPage().getFromNameAfterHTTP('forums.reprap.org/read.php?154,75635,77156#msg-77156', 'Skeinforge 40 and over', self )
README.md (https://github.com/serverless/serverless.git) Markdown · 22 lines
18 | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------ |
19 | [Google Node Simple](https://serverless.com/examples/google-node-simple-http-endpoint/) <br/> Boilerplate project repository for Google Cloud provider with Serverless Framework. | nodeJS |
20 | [Google Python Simple](https://serverless.com/examples/google-python-simple-http-endpoint/) <br/> Boilerplate project repository for Google Cloud provider with Serverless Framework. | Python |
22 If you have questions, join the [chat in gitter](https://gitter.im/serverless/serverless) or [post over on the forums](https://forum.serverless.com/)
index.html (https://github.com/gglynne/gglynne.github.com.git) HTML · 118 lines
3 <head>
4 <meta charset="utf-8">
5 <title>list comprehensions: python vs ruby</title>
6 <link rel="stylesheet" type="text/css" href="/style.css" media="screen">
7 <style TYPE="text/css">
24 <!--» -->
25 <!---->
26 <!--<a href="/articles/2010-11-05/">list comprehensions: python vs ruby</a> -->
27 <!-- -->
28 <!---->
35 <div id="main">
36 <p>python:</p>
38 <pre><code>In [1]: a=range(9)
base.html (https://bitbucket.org/joneshf/pythonforum.git) HTML · 80 lines
32 <div class="row">
33 <div class="span12 _siteTitle">
34 <h1>Python Forums</h1>
35 <p>The new and better looking but still the same community for the old Python Forum.<br>
36 We need your help to fix the forums.<br>
37 <a href="https://github.com/jkbbwr/PythonForum">
51 <li><a href="{{ url_for('sorry') }}">Members</a></li>
52 <li><a href="{{ url_for('sorry') }}">User Control Panel</a></li>
53 <li><a href="https://github.com/jkbbwr/PythonForum/issues">Report a bug!</a></li>
54 {% if current_user.is_authenticated() %}
55 <li><a>Logged in as {{ current_user.email }}</a></li>
si.po (git://pkgs.fedoraproject.org/system-config-lvm) Unknown · 1696 lines
20 #: ../src/InputController.py:36 ../src/Properties_Renderer.py:24
21 #: ../src/Volume_Tab_View.py:30 ../src/system-config-lvm.py:40
22 #, python-format
23 msgid ""
24 "\n"
33 #. ##Volume to an existing Volume Group.
34 #: ../src/InputController.py:56
35 #, python-format
36 msgid "Select a Volume Group to add %s to:"
37 msgstr ""
67 #: ../src/InputController.py:90
68 #, python-format
69 msgid "Select disk entities to add to the %s Volume Group:"
70 msgstr ""
controller.py (https://gitlab.com/manoj-makkuboy/vikuit) Python · 138 lines
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
67 ('/module/user.promote', UserPromote),
68 ('/module/user.events', UserEvents),
69 ('/module/user.forums/.*', UserForums),
70 # Module Community
71 ('/module/community.list', CommunityList),
75 ('/module/community/.*', CommunityView),
77 # Community forums
78 ('/module/community.forum.list/.*', CommunityForumList),
79 ('/module/community.forum.edit', CommunityForumEdit),
80 ('/module/community.forum/.*', CommunityForumView),
81 ('/module/community.forum.reply', CommunityForumReply),
82 ('/module/community.forum.subscribe',CommunityForumSubscribe),
83 ('/module/community.forum.delete', CommunityForumDelete),
84 ('/module/community.thread.edit', CommunityThreadEdit),
html.py (https://github.com/sss/calibre-at-bzr.git) Python · 251 lines
install_dependencies.sh (https://github.com/nasser/openFrameworks.git) Shell · 28 lines
1 apt-get update
2 apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev gstreamer0.10-ffmpeg libglew-dev libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev libgtk2.0-dev libjack0 libjack-dev python-lxml python-argparse
3 ARCH=$(uname -m)
4 if [ "$ARCH" = "x86_64" ]; then
15 if [ $exit_code != 0 ]; then
16 echo "there has been a problem compiling Debug OF library"
17 echo "please report this problem in the forums"
18 exit $exit_code
19 fi
23 if [ $exit_code != 0 ]; then
24 echo "there has been a problem compiling Release OF library"
25 echo "please report this problem in the forums"
26 exit $exit_code
27 fi
views.py (https://github.com/honmaple/maple-bbs.git) Python · 154 lines
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 # **************************************************************************
13 from flask import render_template, request
15 from forums.api.tag.models import Tags
16 from forums.api.topic.models import Topic
17 from forums.api.collect.models import Collect
18 from forums.api.user.models import User
19 from forums.common.response import HTTPResponse
20 from forums.common.views import IsAuthMethodView as MethodView
21 from forums.api.message.models import MessageClient
contributing.rst (https://github.com/MechanisM/mediacore.git) ReStructuredText · 113 lines
14 <http://github.com/mediacore/mediacore/issues>`_.
16 You can always post to our `community forums
17 <http://getmediacore.com/community>`_ if you aren't sure if its a bug or
18 not.
22 ------------------
24 We follow `PEP 8 <http://www.python.org/dev/peps/pep-0008/>`_, which is
25 practically universal in the Python world. The only exception is that
toc.yml (https://github.com/piyonakajima/azure-docs.ja-jp.git) YAML · 119 lines
22 - name: PHP
23 href: quickstarts/php.md
24 - name: Python
25 href: quickstarts/python.md
34 - name: Node.js
35 href: web-search-sdk-node-quickstart.md
36 - name: Python
37 href: web-sdk-python-quickstart.md
86 - name: Python
87 href: 'https://docs.microsoft.com/python/api/overview/azure/cognitiveservices/websearch?view=azure-python'
88 - name: Node.js
89 href: 'https://docs.microsoft.com/javascript/api/overview/azure/cognitiveservices/websearch?view=azure-node-latest'
111 items:
112 - name: User Voice フォーラム
113 href: 'https://cognitive.uservoice.com/forums/555907-bing-web-search-api'
114 - name: スタック オーバーフロー
115 href: 'https://stackoverflow.com/search?q=bing+web+search'
app_compat.md (https://gitlab.com/apachipa/Virtualization-Documentation) Markdown · 85 lines
20 The sole purpose of this document is to share our experience.
22 Is something not on this list? Let us know what fails and succeeds in your environment via [the forums](https://social.msdn.microsoft.com/Forums/en-US/home?forum=windowscontainers).
24 ## Windows Server Containers
69 | Apache HTTPD | 2.4 | Yes | VC++ runtime does not get installed if dedup filter is loaded. Unload dedup using `fltmc unload dedup` |
70 | ASP.NET | 5 beta 6 | Yes | Both, x64 and x86 |
71 | Django | | Yes | If the image is created with a DockerFile and python binaries are copied as part it, Python does not work. Start container and then copy the python binaries. |
72 | Go | 1.4.2 | Yes | |
73 | Internet Information Service | 10.0 | Yes | HTTPS/TLS does not work. IIS does not install using dism directly. Do unattended installation of IIS using dism commands. |
76 | NGinx | 1.9.3 | Yes | |
77 | Node.js | 0.12.6 | Partially | NPM fails to download packages. |
78 | Python | 3.4.3 | Yes | If the image is created with a DockerFile and python binaries are copied as part it, Python does not work. Start container and then copy the python binaries. |
79 | Redis | 2.8.2101 | Yes | |
80 | Ruby | 2.2.2 | Yes | Both, x64 and x86 |
index.html (https://github.com/mozilla/bedrock.git) HTML · 65 lines
25 */
26 </pre></br>
27 <pre id="mpl-python">
28 # This Source Code Form is subject to the terms of the Mozilla Public
29 # License, v. 2.0. If a copy of the MPL was not distributed with this
49 * https://creativecommons.org/publicdomain/zero/1.0/ */
50 </pre></br>
51 <pre id="pd-python">
52 # Any copyright is dedicated to the Public Domain.
53 # https://creativecommons.org/publicdomain/zero/1.0/
61 https://creativecommons.org/publicdomain/zero/1.0/
62 </pre></br>
63 <p>Licensing questions? Ask in <a href="{{ url('mozorg.about.forums.forums') }}#legal">mozilla.legal</a>.</p>
64 </section>
65 {% endblock %}
encodingKludge.py (https://github.com/junalmeida/Sick-Beard.git) Python · 69 lines
22 import sickbeard
24 # This module tries to deal with the apparently random behavior of python when dealing with unicode <-> utf-8
25 # encodings. It tries to just use unicode, but if that fails then it tries forcing it to utf-8. Any functions
26 # which return something should always return unicode.
51 return x.encode(sickbeard.SYS_ENCODING)
52 except UnicodeEncodeError:
53 logger.log(u"YOUR COMPUTER SUCKS! Your data is being corrupted by a bad locale/encoding setting. Report this error on the forums or IRC please: "+repr(x)+", "+sickbeard.SYS_ENCODING, logger.ERROR)
54 return x.encode(sickbeard.SYS_ENCODING, 'ignore')
README.md (https://github.com/makehumancommunity/makehuman.git) Markdown · 89 lines
14 A quick look through at least the top questions in the FAQ might be a good idea too: http://www.makehumancommunity.org/wiki/FAQ:Index
16 Please do not use the issue tracker for general tech support. For such questions, please use the forums.
18 ## Testing and reporting bugs
33 * Install git (https://git-scm.com/) with LFS support (https://git-lfs.github.com/). Modern git clients have LFS support included per default.
34 * Make sure the command "git" is available via the PATH variable.
35 * Install python 3.6.x or later from https://www.python.org/ (or via your system's package management). On windows you **MUST** use 64-bit python. 32-bit python will not work.
36 * Install python dependencies (see below)
42 * compile\_targets.py
44 ### Installing python dependencies on debian, ubuntu, mint and similar systems
46 All that you need should be available via apt. On a console prompt, run:
48 * apt-get install python3-numpy, python3-opengl, python3-pyqt5, python3-pyqt5.qtopengl, python3-pyqt5.qtsvg
50 ### Installing python dependencies on windows
settings.py (https://github.com/joskid/bellum.git) Python · 126 lines
default_arg_values.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 19 lines
4 struct Display {
5 // Some compilers warn about 'float v = NULL', so only SWIG sees this peculiarity
6 // Bad Python wrappers were being generated when NULL used for primitive type
7 float draw1(float v = 0) { return v; }
8 float draw2(float *v = 0) { return v ? *v : 0; }
13 struct Display {
14 // Bad Python wrappers were being generated when NULL used for primitive type
15 float draw1(float v = NULL) { return v; }
16 float draw2(float *v = NULL) { return v ? *v : 0; }
resources.md (https://github.com/alex-cory/Interviews.git) Markdown · 25 lines
10 ### Courses
11 - [Machine Learning Engineer Nanodegree - Make Predictive Models](https://www.udacity.com/course/machine-learning-engineer-nanodegree--nd009) - Udacity
12 - [Intro to Machine Learning - Pattern Recognition for Fun and Profit](https://www.udacity.com/course/intro-to-machine-learning--ud120) - Udacity (in python)
13 - [Deep Learning by Google - Take machine learning to the next level](https://www.udacity.com/course/deep-learning--ud730) - Udacity
23 ### Interview Prep Sites
24 - [Kaggle](https://www.kaggle.com/) - Runs programming contests to crowdsource machine learning solutions. Offers forums, a database of public datasets, tutorials, and machine learning job ...
25 - [HackerRank](https://www.hackerrank.com/domains/ai/machine-learning/page:1) - Specifically the machine learning challenges
scenekit-demo.py (https://github.com/tdamdouni/Pythonista.git) Python · 57 lines
Advanced.html
(https://swig.svn.sourceforge.net/svnroot/swig)
HTML · 306 lines
✨ Summary
This is a documentation page for SWIG, a software development tool. It provides information on how SWIG works, including its type-checking mechanism, which uses a name-based approach to match C and C++ datatypes with scripting language types. The page explains the performance characteristics of the type-checker and its trade-offs in terms of processing overhead and accuracy.
This is a documentation page for SWIG, a software development tool. It provides information on how SWIG works, including its type-checking mechanism, which uses a name-based approach to match C and C++ datatypes with scripting language types. The page explains the performance characteristics of the type-checker and its trade-offs in terms of processing overhead and accuracy.
1 <!-- Published by Quadralay WebWorks HTML Lite 1.5.1 -->
2 <!-- And munged by Dave's special Python script -->
3 <html>
4 <head>
49 When compiled into two separate modules, the code does not work properly. In fact, you get a type error such as the following :<p>
50 <p>
51 <blockquote><pre>[beazley@guinness shadow]$ python
52 Python 1.4 (Jan 16 1997) [GCC 2.7.2]
80 libswigpl.a # Perl library (static)
81 libswigpl.so # Perl library (shared)
82 libswigpy.a # Python library (static)
83 libswigpy.so # Python library (shared)
88 2. Compile all SWIG modules using the <tt>-c</tt> option. For example :<p>
89 <p>
90 <blockquote><pre>% swig -c -python a.i
91 % swig -c -python b.i
CMakeLists.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) CMake · 250 lines
209 OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/RegExpJitTables.h
210 MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/create_regex_tables
211 COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/create_regex_tables > ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/RegExpJitTables.h
212 VERBATIM)
213 ADD_SOURCE_DEPENDENCIES(${JAVASCRIPTCORE_DIR}/yarr/YarrPattern.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/RegExpJitTables.h)
README.rst (https://github.com/pombredanne/kitsune.git) ReStructuredText · 68 lines
59 --------------------
61 When creating an ``Action``, you need to save a Python route to a formatter
62 class. For example, assuming the formatter above was in ``forums.tasks``, you
65 action = Action()
66 action.formatter = 'forums.tasks.ForumReplyFormatter'
68 It should be a path you can import from the Django shell.
addonids.py (https://github.com/luser/socorro.git) Python · 106 lines
1 #!/usr/bin/python
2 # vim: set shiftwidth=4 tabstop=4 autoindent expandtab:
3 # ***** BEGIN LICENSE BLOCK *****
72 # FIXME: There's lots of about:support output in support.mozilla.com
73 # forums that has additional extension IDs paired with names. It would
74 # be a good additional source of data.
75 local_db = AddonInfoMap("addonids-local")
demo-newsedit.rst (https://github.com/MostAwesomeDude/divmod-docs.git) ReStructuredText · 75 lines
kekule.py (https://github.com/pombredanne/amara.git) Python · 89 lines
43 #Ideas borrowed from
44 # http://www.artima.com/forums/flat.jsp?forum=106&thread=4829
46 def command_line_prep():
47 from optparse import OptionParser
48 usage = "Amara 2.x. Tool to generate code to generate XML.\n"
49 usage += "python -m 'amara.tools.kekule' [options] source"
50 parser = OptionParser(usage=usage)
51 parser.add_option("--struct-rewrite",
rules (https://plplot.svn.sourceforge.net/svnroot/plplot) Makefile · 129 lines
27 # Build first bare libraries (no Tcl/Tk)
28 ./configure --prefix=/usr --disable-tcl --disable-tk \
29 --disable-python $(cfflags)
30 # This PLLIB_PATH setting is necessary to avoid the lintian error
31 # ldconfig-symlink-referencing-wrong-file
34 # Build the Tcl/Tk libraries
35 ./configure --prefix=/usr --enable-tcl --enable-tk \
36 --enable-python $(cfflags)
37 make PLLIB_PATH=
38 touch build-stamp
67 # Make x16.py non-executable. Temporary hack.
68 chmod -x \
69 $(debbase)/python-plplot/usr/share/doc/plplot/examples/python/x16.py
71 touch install-stamp
setup.py (https://github.com/gustavopinto/pycassa.git) Python · 117 lines
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
28 __version__ = '.'.join(map(str, version_tuple))
30 long_description = """pycassa is a python client library for Apache Cassandra with the following features:
32 1. Auto-failover single or thread-local connections
76 else:
77 print """
78 `setup.py doc` is not supported for this version of Python.
80 Please ask in the user forums for help.
89 maintainer = 'Tyler Hobbs',
90 maintainer_email = 'pycassa.maintainer@gmail.com',
91 description = 'Python client library for Apache Cassandra',
92 long_description = long_description,
93 url = 'http://github.com/pycassa/pycassa',
README.md (https://gitlab.com/bplatta/proto-api) Markdown · 106 lines
95 2. Make sure APIARY_API_KEY is set in env
96 3. Make updates to specs/yourmarkdown.md
97 4. Publish with `apiary publish --api-name=fruitfulforums --path=specs/fruitfulforums.apib`
99 ## Current Prototypes
101 #### FruitfulForums
103 - Forum application that encourages fruitful dialogue
104 - docs: http://docs.fruitfulforums.apiary.io/
105 - spec: specs/fruitfulforums.md
106 - Can create local data by jumping onto box (`make sandbox`) and running `python manage.py ff_populate_local_db`
forums_page.py (https://github.com/AlinT/sumo-tests.git) Python · 61 lines
1 #!/usr/bin/env python
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
9 class ForumsPage(Base):
10 """
11 The Firefox Forums Page contains
12 web elements and methods that can be
13 performed on them. The page lists different
14 categories of forums: SUMO community/Off-topic etc.
15 """
16 _page_title = 'Forums'
31 def __init__(self, testsetup):
32 self.forums_cat_list_url = testsetup.base_url_ssl + '/en-US/forums'
33 self.kb_articles_forum_url = testsetup.base_url_ssl + '/en-US/forums/knowledge-base-articles'
phonetic.py (https://github.com/openhatch/oh-mainline.git) Python · 122 lines
41 # Quasi-phonetic coder for Spanish, translated to Python from Sebastian
42 # Ferreyra's version here:
43 # http://www.javalobby.org/java/forums/t16936.html
84 # This version of soundex for Arabic is translated to Python from Tammam
85 # Koujan's C# version here:
86 # http://www.codeproject.com/KB/recipes/ArabicSoundex.aspx
UserForums.py (https://gitlab.com/manoj-makkuboy/vikuit) Python · 39 lines
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
24 from google.appengine.api import users
26 class UserForums(BaseHandler):
28 def execute(self):
37 query = model.Thread.all().filter('author', this_user).filter('parent_thread', None)
38 self.values['threads'] = self.paging(query, 10, '-creation_date', this_user.threads, ['-creation_date'])
39 self.render('templates/module/user/user-forums.html')
README.md (https://github.com/navap/picard.git) Markdown · 24 lines
4 [](https://app.codacy.com/gh/metabrainz/picard)
6 [MusicBrainz Picard](http://picard.musicbrainz.org) is a cross-platform (Linux/Mac OS X/Windows) application written in Python and is the official [MusicBrainz](http://musicbrainz.org) tagger.
8 Picard supports the majority of audio file formats, is capable of using audio fingerprints ([AcoustIDs](http://musicbrainz.org/doc/AcoustID)), performing CD lookups and [disc ID](http://musicbrainz.org/doc/Disc_ID) submissions, and it has excellent Unicode support. Additionally, there are several plugins available that extend Picard's features.
17 ---------------------------
19 Please report all bugs and feature requests in the [MusicBrainz issue tracker](https://tickets.metabrainz.org/browse/PICARD). If you need support in using Picard please read the [documentation](https://picard-docs.musicbrainz.org/) first and have a look at the [MusicBrainz community forums](https://community.metabrainz.org/c/picard).
21 Installing
2020-01-06-2020-retrospect.md (https://github.com/psykidellic/psykidellic.github.com.git) Markdown · 20 lines
8 * The biggest new thing from 2019 was Kubernetes. For work purposes, I got a chance to setup a working production k8s cluster. It has been an interesting journey till now. Like all new technologies, it is definitely a complex and new way of doing things. Along with k8s, tools like Terraform, Helm were also studied. I think overall, now I have a basic -> intermediate level competency. As an extra experience, I also tried out GKE with personal tutorials/learning.
10 * With more Golang work in plate, worked on maintaining existing Go based services. In my initial newbie days, I did find the construct a bit weird (coming from Python background) but overtime, I think I have come to appreciate the language for what it is. Leaving aside various negatives that have been discussed every popular forums, its actually quite nice to build server softwares.
12 * As can be read from some of my other posts, I am a sucker for improving my editing code flows. I seem to have a love and hate relationship with the editor and after trying different ones and different flows, I seem to always come to back it. I did try VS Code as part of Golang work (mostly for the GUI based delve debugging tool) but came back once again to trusty VIM. To that effect, spent some good hours reading up more on how people are using VIM. Surprisingly, there are good number of videos on YouTube that you can watch to something new - even if it is one feature.
intelli-sense-for-ui-objects.py (https://github.com/tdamdouni/Pythonista.git) Python · 85 lines
contribute.rst (https://github.com/thorrak/fermentrack.git) ReStructuredText · 41 lines
24 project, and all help is welcome.
26 Fermentrack is a Python-based application which uses the Django framework. It is open source and is managed on GitHub.
27 To help you get started, take a look at the developer documentation located within :doc:`/develop/index`. After reading,
28 if you have questions don't hesitate to reach out. I do recommend reaching out (either on HomeBrewTalk or by raising an
39 If you are familiar with GitHub, pull requests that include documentation fixes are always welcome. If not, reach out on
40 GitHub or the HomeBrewTalk forums and we'll be happy to help get things updated.
data_process.py (https://github.com/YZHANG1270/Aspect-Based-Sentiment-Analysis.git) Python · 99 lines
0003_enable_forums.py (https://gitlab.com/unofficial-mirrors/edx-platform) Python · 30 lines
7 def add_default_enable(apps, schema_editor):
8 ForumsConfig = apps.get_model("django_comment_common", "ForumsConfig")
9 settings_count = ForumsConfig.objects.count()
12 # discussions themselves by default, as in showing the Disucussions tab, or
13 # inline discussions, etc. It just allows the underlying service client to work.
14 settings = ForumsConfig(enabled=True)
15 settings.save()
24 dependencies = [
25 ('django_comment_common', '0002_forumsconfig'),
26 ]
28 operations = [
29 migrations.RunPython(add_default_enable, reverse_code=reverse_noop),
30 ]
generalResources.md (https://github.com/zero-to-mastery/resources.git) Markdown · 32 lines
7 - [W3Schools](https://www.w3schools.com): A great resource for web developers with tutorials( with good examples ) and references on web development. This resource covers
8 subjects such as: HTML, CSS, JavaScript, PHP, SQL, Python, jQuery, Java, W3.CSS, and Bootstrap, covering most aspects of web programming.
10 - [StackOverflow](https://stackoverflow.com/): A massive resource of questions and answers having to do with coding. If you have a question regarding web development or coding in general, chances are it has already been answered on StackOverflow.
26 * [**Codrops**](https://tympanus.net/codrops/): A website to find cutting edge modern web development templates, useful tutorials and snippets for your next web project
28 - [StackExchange](https://stackexchange.com/): StackOverflow's less specialized (and oft-overlooked) cousin. Depending on what you're looking for, you can often find help on one of the more specialized StackExchange forums, including the exisitng forums for Aruduino, superusers, and programming challenges (known as "code golf").
30 * [**Educative.io**](https://www.educative.io/learn): A website to find online course at a very cheap price with an interactive way of teaching, reading and practice what you've learned.
installation.md (https://github.com/boltsparts/BOLTS.git) Markdown · 85 lines
33 No module named yaml
35 then this is because the yaml library for python is not installed. If you are
36 using Linux, then you can usually get it using your package manager. If you are
37 on windows you can get an installer [here](http://pyyaml.org/wiki/PyYAML); you
38 have to install YAML for the version of Python (first two digits) that is
39 bundled with FreeCAD. You can find out which version that is from the first
40 line of the python console in FreeCAD. If it is not opened, you can make it
45 No module named importlib
47 then you are using a older version of python where the importlib library is not
48 included. You can get it [here](https://pypi.python.org/pypi/importlib/1.0.2).
49 For importlib no convenient installer is available for windows. Instructions on
50 how to install a python module without an installer can be found
51 [here](http://docs.python.org/2/install/index.html). Again you should use the
readme.md (https://gitlab.com/yawenzou/todomvc) Markdown · 80 lines
31 * [TypeScript on StackOverflow](http://stackoverflow.com/questions/tagged/typescript)
32 * [Forums](https://github.com/Microsoft/TypeScript/issues)
33 * [TypeScript on Twitter](http://twitter.com/typescriptlang)
78 $ browserify js/app.js -o js/bundle.js
80 To run the app, spin up an HTTP server (e.g. `python -m SimpleHTTPServer`) and visit http://localhost/.../myexample/.
about.py (https://github.com/bebef1987/mcom-tests.git) Python · 55 lines
1 #!/usr/bin/env python
3 # This Source Code Form is subject to the terms of the Mozilla Public
23 _mozilla_blog_link = (By.CSS_SELECTOR, '.links:nth-of-type(1) > li:nth-of-type(3) > h4 > a')
24 _privacy_center_link = (By.CSS_SELECTOR, '.links:nth-of-type(1) > li:nth-of-type(4) > h4 > a')
25 _forums_link = (By.CSS_SELECTOR, '.links:nth-of-type(1) > li:nth-of-type(5) > h4 > a')
26 _governance_link = (By.CSS_SELECTOR, '.links:nth-of-type(2) > li:nth-of-type(5) > h4 > a')
27 _get_involved_link = (By.CSS_SELECTOR, '.links:nth-of-type(2) > li:nth-of-type(4) > h4 > a')
35 _mozilla_blog_link,
36 _privacy_center_link,
37 _forums_link,
38 _governance_link,
39 _get_involved_header_link,
install-windows.rst (https://github.com/anki/cozmo-python-sdk.git) ReStructuredText · 68 lines
23 ^^^^^^^^^^^^^^^^^^^
24 Python Installation
25 ^^^^^^^^^^^^^^^^^^^
27 Download the `Python 3.5.1 (or later) executable file from Python.org <https://www.python.org/downloads/>`_ and
28 run it on your computer.
60 ^^^^^^^^^^^^^^^
62 Please see the :ref:`trouble` section of the Initial Setup page for tips, or visit the `Cozmo SDK Forums <https://forums.anki.com/>`_ to ask questions, find solutions, or for general discussion.
64 ----
fbc.py (http://diamanda.googlecode.com/svn/trunk/) Python · 111 lines
27 value = value.replace('[code]%s[/code]' % i, high)
29 tags = findall( r'(?xs)\[python\](.*?)\[/python\]''', value)
30 for i in tags:
31 j = base64.b64encode(i.encode('utf-8'))
32 high = '[python]%s[/python]' % j
33 value = value.replace('[python]%s[/python]' % i, high)
78 lexer = get_lexer_by_name('python')
79 tags = findall( r'(?xs)\[python\](.*?)\[/python\]''', value)
80 for i in tags:
81 try:
84 j = ''
85 high = '<div class="box" style="width:90%%;margin-left:auto;margin-right:auto;">%s</div>' % (highlight(j, lexer, pygments_formatter))
86 value = value.replace('[python]%s[/python]' % i, high)
save_script.py (https://github.com/tdamdouni/Pythonista.git) Python · 50 lines
1 # http://omz-forums.appspot.com/pythonista/post/5862307733176320
2 # https://github.com/mncfre/Save-Script/blob/master/save_script.py
4 ''' Save-Script
5 # This is a python script that work in conjunction with a workflow (you need Workflow for ios) to enable open scripts .py (Only .py for now) and save it directly on Pythonista The workflow link is: https://workflow.is/workflows/8cdee57f79664205a6a565c9cbdb3d48
7 # Updated: Script updated to ask destiny extension, using the @JonB suggestion, so if you have a .pyui change its extension to .py then "open in" then in pythonista select .pyui extension, its not perfect but its all I have now.
11 # This script allows you to copy a .py script to the iOS clipboard and then use Open In...
12 to have that script saved in Pythonista. This requires both the Workflow and Pythonista apps
13 and the workflow at https://workflow.is/workflows/8cdee57f79664205a6a565c9cbdb3d48 '''
README.md (https://github.com/vsasa/T0_knowhow.git) Markdown · 48 lines
install_dependencies.sh (https://github.com/metropol/openFrameworks.git) Shell · 27 lines
1 pacman -Syu --needed make pkg-config gcc openal python-lxml glew freeglut freeimage jack gstreamer0.10-good-plugins gstreamer0.10-bad-plugins
3 ARCH=$(uname -m)
15 if [ $? != 0 ]; then
16 echo "there has been a problem compiling Debug OF library"
17 echo "please report this problem in the forums"
18 exit
19 fi
22 if [ $? != 0 ]; then
23 echo "there has been a problem compiling Release OF library"
24 echo "please report this problem in the forums"
25 fi
26 chown -R $ID:$GROUP_ID obj ../../lib/${LIBSPATH}/*
Search.py (https://gitlab.com/manoj-makkuboy/vikuit) Python · 53 lines
breadth_first_visit.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code is a documentation page for the Boost Graph Library, specifically detailing the breadth_first_visit
function. It explains the function’s purpose, parameters, and behavior, as well as its complexity and visitor event points. The page also includes links to related functions and notes on using the function.
This HTML code is a documentation page for the Boost Graph Library, specifically detailing the breadth_first_visit
function. It explains the function’s purpose, parameters, and behavior, as well as its complexity and visitor event points. The page also includes links to related functions and notes on using the function.
16 <BR Clear>
18 <H1><A NAME="sec:bfv"><img src="figs/python.gif" alt="(Python)"/>
19 <TT>breadth_first_visit</TT>
20 </H1>
59 be a model of <a href="./IncidenceGraph.html">Incidence Graph</a>.<br>
61 <b>Python</b>: The parameter is named <tt>graph</tt>.
62 </blockquote>
66 The source vertex where the search is started.<br>
68 <b>Python</b>: The parameter is named <tt>root_vertex</tt>.
69 </blockquote>