- Tim Jones homepage (author of primary textbook, note that book code is only on cdrom with book)
- GNU/Linux Application Programming (1st ed.) by Tim Jones (much of first edition of Jones text on Google Books)
- Beginning Linux Programming (4th ed.) by Matthew and Stones (alternative text, can download code from this site)
- free download of Beginning Linux Programming (4th ed.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Problem Code Here : | |
| redirect_to = request.GET.get('next') | |
| return HttpResponseRedirect(redirect_to) | |
| Resolve Bug : | |
| redirect_to = request.GET.get('next') | |
| if redirect_to: | |
| redirect_to = redirect_to if is_safe_url(redirect_to, request.get_host()) else '/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hi Tim | |
| action 1 : https://code.djangoproject.com/github/login | |
| https://github.com/trac-hacks/trac-github/blob/master/tracext/github.py#L64&L69 | |
| def _do_login(self, req): | |
| oauth = self._oauth_session(req) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/env python | |
| try: | |
| import subprocess as sub | |
| compatmode = 0 # newer version of python, no need for compatibility mode | |
| except ImportError: | |
| import os # older version of python, need to use os instead | |
| compatmode = 1 | |
| # title / formatting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;Author : Sanjib Narzary | |
| ;Institute: NIT Calicut | |
| ;Email: [email protected] | |
| ;Assembly Code | |
| section .text | |
| global main | |
| extern printf | |
| main: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;Author : Sanjib Narzary | |
| ;Institute: NIT Calicut | |
| ;Email: [email protected] | |
| ;Assembly Code | |
| section .text | |
| global main | |
| extern printf | |
| main: | |
| mov ebx,10 ;number 10 to ebx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;Author : Sanjib Narzary | |
| ;Institute: NIT Calicut | |
| ;Email: [email protected] | |
| ;Assembly Code | |
| section .data | |
| ;New line string | |
| NEWLINE: db 0xa, 0xd | |
| LENGTH: equ $-NEWLINE | |
| section .bss | |
| INPT: resd 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;Author : Sanjib Narzary | |
| ;Institute: NIT Calicut | |
| ;Email: [email protected] | |
| ;greet.asm | |
| section .data | |
| ; Declare/store the information "Hello World!" | |
| prompt db 'What is your name? ' | |
| ; do not change the order of the following three lines! | |
| helloMsg dq 'Hello ' | |
| name db ' ' ; space characters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * twitter-entities.js | |
| * This function converts a tweet with "entity" metadata | |
| * from plain text to linkified HTML. | |
| * | |
| * See the documentation here: http://dev.twitter.com/pages/tweet_entities | |
| * Basically, add ?include_entities=true to your timeline call | |
| * | |
| * Copyright 2010, Wade Simmons | |
| * Licensed under the MIT license |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _ATOMIC_H | |
| #define _ATOMIC_H | |
| /* Check GCC version, just to be safe */ | |
| #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC_MINOR__ < 1) | |
| # error atomic.h works only with GCC newer than version 4.1 | |
| #endif /* GNUC >= 4.1 */ | |
| /** |
OlderNewer