Skip to content

Instantly share code, notes, and snippets.

@zjhiphop
Last active December 30, 2015 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zjhiphop/7904301 to your computer and use it in GitHub Desktop.
Save zjhiphop/7904301 to your computer and use it in GitHub Desktop.
Ming relates resources

Links:

Startup a simple web server by python:

# kill 8080 port process
lsof -i tcp:8080
kill -9 [PID]

#start a new server on 8080
python -m SimpleHTTPServer 8080 &

Setup Git FTP

  • Install (Both in Mac and Windows)
	cd ~
	git clone https://github.com/git-ftp/git-ftp
	cd git-ftp && chmod +x git-ftp
	cd /bin
	ln -s ~/git-ftp/git-ftp
  • Usage
 	git ftp help  
  • Ming-WebSite
	git ftp push -u [username] -p [password] ftp://188.40.30.104/public_html/development/asgwebsite

Tips

  • Gumby
    • use include instead of add class to avoid too fat html, like:
      <div class="i_am_a_row">
        <div class="i_am_a_push_one_with_five_width_column"></div>
      </div>
      .i_am_a_row {
      	@include row();
      }
      
      .i_am_a_push_one_with_five_width_column{
          @include colomn(5);
          @include push(1);
      }
    • use 'large-[column]' for desktop, 'middle-[column]' for tablet, 'small-[column]' for phone.
    • use commone class to build common coponent, include: .common-btn, .common-input, .common-circle
    • never wrap the trigger around links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment