Skip to content

jinjun2016/jinjun1994.github.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Valentine

Powered by Lettuce

Tutorial:

教程: 情人节礼物大作战

  • Raspberry Pi
  • Arduino
  • 其他(控制用)

###Demo

Demo: http://valentine.phodal.com

Video: http://www.tudou.com/programs/view/ymr5BpHkHYc/

##Install

1.Clone

git clone https://github.com/phodal/valentine

2.Install

pip install -r requirements.txt

3.Run

python server.py    

##Others

####Remind

curl http://0.0.0.0:5000/todo1 -d "data=Remember the milk" -X PUT

####IR Remote

irsend SEND_ONCE home KEY_0

####Ajax

lettuce.post("http://127.0.0.1:5000/some", "something", function(data){console.log(data)})

####FX

L.FX.fadeIn(document.getElementById('results'), {duration: 2000, complete: function() {}});

License

© 2015 Phodal Huang. This code is distributed under the MIT license. See LICENSE.txt in this directory.

待我代码编成,娶你为妻可好

About

程序员情人节礼物示例, Valentine's Day Example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.2%
  • CSS 11.5%
  • Python 4.3%
  • C++ 2.8%
  • HTML 2.2%