EMBED YOUR TERMINAL RECORDINGS ONLINE

Clever code toggling

DATE: 2012-06-25
AUTHOR: Coder of Salvation
AUTHOR WWW: http://leon.vankammen.eu
RELATED ARTICLE: http://en.wikipedia.org/wiki/Comment_(computer_programming)

Related recordings:

CAT COMMAND IN LINUX

tags: cat unix gnu linux view file textfile editing
LIST DIRECTORIES IN LINUX WITH LS

tags: ls directory show content linux disk beginner
SUTRAPHP-INTRODUCTION

tags: sutraphp sutra php console cli eventbased
MORE OVERVIEW IN MYSQL WITH SELECTS

tags: mysql, select, more overview, console
M4, THE HIDDEN GNU TREASURE

tags: m4, gnu, macroprocessor, template, search, replace, sed
THE UNIX TREE COMMAND

tags: unix console tree bash directory listing
DEVTODO: COMMANDLINE TODO MANAGEMEN

tags: todo xml tasks productivity management
VIM ALIGN

tags: vim align aligning text text editing text trick
VISUAL SELECTS IN VIM

tags: vim visual selects regex text editing fast
GENERATING PHP & SQL (MAPPING) CODE

tags: sutra generate sql generate database php cms mysql

Bookmark and Share
EMBED THIS RECORDING:
<div><script id="playterm-MjAxMi0wNi9jb2RldG9nZ2xpbmd0dHlyZWMtMTM0MDYyMDg2MHw4MHgyNA==" type="text/javascript" src="http://playterm.org/js/?hash=MjAxMi0wNi9jb2RldG9nZ2xpbmd0dHlyZWMtMTM0MDYyMDg2MHw4MHgyNA==" class="size:80x24"></script></div>
I recorded this `clever code toggling` shellsession because I wanna stimulate developers to be
flexible.

  /**/
  
    // this will get executed
  
  /*/
  
    // this will get ignored
  
  /**/

OR:

  /*/
  
    // this will get ignored
  
  /*/
  
    // this will get executed
  
  /**/

tara said

that is a buzz.... supper nice.....and fantastic
but wish we could download them...
since not every budy have internet resourses to whatch online

0xann said

just do this:
1) scroll to the text below the player
2) copy/paste the code snippets
3) save it to a textfile
idea? :)

wez said

nice little trick this. for php this is fine, but wouldn't this break portability for compiled code?
if a compiler for another platform has stricter rules about mismatched comment blocks, it might not
like this.
then one can use 1) conditional compilation flags or 2) a setting variable which can be toggled by
command line parameters.

Coder of Salvation said

@wez: agreed, didn't think of that. Conditional flags are really cool for that.

 

Name   
Email (never shown)  
Comment