Skip to content

Instantly share code, notes, and snippets.

View mosbth's full-sized avatar

Mikael Roos mosbth

View GitHub Profile
@mosbth
mosbth / Get going with CTextFilter
Last active August 29, 2015 14:10
How to use CTextFilter from Anax-oophp
Two ways to get started.
1) Take the bits and pieces:
The class is available here:
https://github.com/mosbth/Anax-oophp/tree/master/src/CTextFilter
In the same directory, clone
https://github.com/michelf/php-markdown.git
-----------------------------------------
----------- dbwebb inspect --------------
-----------------------------------------
Checking kmom05 for siwa14 as mosstud at seekers.
Open files in an editor:
vim /home/saxon/students/20142/siwa14/dbwebb-kurser/python
-----------------------------------------
----------- python kmom05 ---------------
@mosbth
mosbth / gist:dc697913f1fff4b71d95
Last active August 29, 2015 14:13
Bokningar redovisning ht14

WIP14 - Redovisning oophp, tors 08-15

Gradängsal J1630 8-12

Unixlabb H430 (DIPT/DIDD) 13-15

WIP13 - redovisning javascript, fre 09-12

seekers~/www/dbwebb-kurser/stud: cd adventure/
seekers~/www/dbwebb-kurser/stud/adventure: ls
README.md __pycache__/ adventure.py command/ commands.py config.py core/ jargs.py jargs.pyc
seekers~/www/dbwebb-kurser/stud/adventure: python3 adventure.py
adventure.py:148: SyntaxWarning: name 'DEBUG_MODE' is used prior to global declaration
global DEBUG_MODE
Traceback (most recent call last):
File "adventure.py", line 26, in <module>
import core.core as core
ImportError: No module named core.core
seekers~: potatoe maws12
[sudo] password for mosstud:
/home/saxon/students/20122/maws12/dbwebb-kurser
drwxr-sr-x 3 maws12 dbwebb-kurser 4096 Jan 19 17:59 .
drwx--S--x 5 maws12 20122 4096 Jan 19 17:59 ..
drwxr-xr-x 6 maws12 dbwebb-kurser 4096 Jan 19 17:55 python
-------------------------------------------------------------
-- dbwebb inspect
-------------------------------------------------------------
Checking kmom01 for miis15 as mosstud at sweet.
URL to : http://www.student.bth.se/~miis15/dbwebb-kurser/python/me/
-------------------------------------------------------------
-- dbwebb inspect
-------------------------------------------------------------
Checking kmom01 for ropa15 as mosstud at seekers.
URL to : http://www.student.bth.se/~ropa15/dbwebb-kurser/python/me/
-------------------------------------------------------------
-- dbwebb inspect
-------------------------------------------------------------
Checking kmom01 for tooh15 as mosstud at sweet.
URL to : http://www.student.bth.se/~tooh15/dbwebb-kurser/javascript1/me/
/**
* Exercise 1.1
*
* Create a variable called 'numberOne' and give it the value 803. Create
* another variable called 'numberTwo' and give it the value 431. Create a
* third variable called 'result' and assign to it the sum of the first two
* variables. Answer with the result.
*
* Write your code below and put the answer into the variable ANSWER.
*/
/**
* Exercise 1.1
*
* Create a variable called 'numberOne' and give it the value 803. Create
* another variable called 'numberTwo' and give it the value 431. Create a
* third variable called 'result' and assign to it the sum of the first two
* variables. Answer with the result.
*
* Write your code below and put the answer into the variable ANSWER.
*/