Skip to content

Instantly share code, notes, and snippets.

View mosbth's full-sized avatar

Mikael Roos mosbth

View GitHub Profile
@mosbth
mosbth / -
Created August 27, 2015 06:48
Validating 'example/'.
*.html using htmlhint................................ (32)
*.css using csslint
WARNING csslint failed: example//fillWithDivs/style/style.css
csslint: There are 1 problems in /home/mos/git/javascript1/example/fillWithDivs/style/style.css.
style.css
@mosbth
mosbth / -
Created August 27, 2015 07:00
Validating 'example/'.
*.html using htmlhint................................ (32)
*.css using csslint........................... (27)
*.js using jshint............................. (29)
*.js using jscs
WARNING jscs failed: example//fillWithDivs/js/main.js
requireSpaceBeforeBinaryOperators: Operator / should not stick to preceding expression at example//fillWithDivs/js/main.js :
11 |
12 | // 10 divs on width and height, calculate sizes for each div
@mosbth
mosbth / gist:10024344
Created April 7, 2014 17:14
Dispatch Anax MVC with params
Först.
$app->dispatcher->forward([
'controller' => 'comment',
'action' => 'view',
'params' => ['the-comment-key-to-this-page'],
]);
@mosbth
mosbth / gist:2320c4d3f10ce9b8bf53
Created October 27, 2014 07:59
Troubleshoot chmod from cygwin where permissions on files and dirtectories gets non-read, even for owner.
Gå till kursrepot.
ls -lR me | tee log1
bin/dbwebb upload
ls -lR me | tee log2
Visa innehållet i log1 och log2
Imorgon är det redovisning kl 8-17.
Vi träffas i J1640 kl 8 och börjar med redovisningarna/presentationerna.
Efter lunch fortsätter vi med testet i datorsalarna H320 och därefter avslutar vi med ett samtal om kursen.
Troligen är vi klara kl 15, men drar det ut på tiden så får vi hålla på tills vi är klara. Dock längst 17.
/Mikael & Jane
@mosbth
mosbth / -
Created November 5, 2014 12:04
Demo gist
Yey, this is a gist"
@mosbth
mosbth / -
Created November 5, 2014 12:08
My demo gist
Here comes some inline random text to fill up my gist made with the command-line utility - gist:
https://github.com/defunkt/gist
@mosbth
mosbth / gist:1181cc6da2786b9c7768
Created November 10, 2014 15:20
$HOME/.cshrc på ssh.student
# @(#)Cshrc 1.0 96/08/26 Ace
#################################################################
#
# .cshrc file
#
# initial setup file for both interactive and noninteractive
# C-Shells
#
#################################################################
@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 ---------------