martes, 1 de abril de 2014

Tips to write a beautiful and useful README.md file


  • Title and subtitles:
    • Title starts with #
    • Subtitle starts with ##
    • SubSubTitle starts with ###
    • SubSubSub...N starts with {#}n
 # Title  
 Explain   
   
 ## Sub Title  
 This is other content related to Title  
   
 ### Sub Title  
 This is a content related to Sub Title  
   
 ## SubSubTitle  
 This is other content related to Title  

  • Show a beautiful Json content use "```json" and the begining and  "```" at the end:
 ```json  
 {  
   something:'Yeah',  
   other:'Oh Yeah!',  
  }  
 ```  
   
  • If you put 4 spaces behind the content it will be showed in a separated box.
  • For multiple items use '-', '*' or '.' at the begining of the lines.
 - This is the first one  
 - This is the second one  
  • Use '`' to open and close a grey rectangle over a variable, path or something you want to show. If you write`PATH_IMAGES`... will be draw something like:
 PATH_IMAGES

martes, 28 de enero de 2014

File Upload Django simple example

Project tree

A basic Django 1.3 project with single app and media/ directory for uploads.
minimal-django-file-upload-example/
    src/
        myproject/
            database/
                sqlite.db
            media/
            myapp/
                templates/
                    myapp/
                        list.html
                forms.py
                models.py
                urls.py
                views.py
            __init__.py
            manage.py
            settings.py
            urls.py

1. Settings: myproject/settings.py

Example/Tutorial Django Imagekit (Image Gallery Package for django)

There's a cool video that explain simple things:

https://godjango.com/37-transform-images-with-django-imagekit/

miércoles, 22 de enero de 2014

Show a Select Field inside a MessageBox Sencha Touch 2.x

 Ext.Msg.prompt(  
   'Test',  
   'Open the picker',  
   function(buttonId, value) {},  
   me, //scope  
   false, //multiline  
   0, // default  
   { // prompt config  
     xtype: 'selectfield',  
     displayField: 'value',  
     store: 'SettingsTag',  
     usePicker:false  
   }  
 );  


Source

Source 2