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
说某个东西简单,只是因为他已经学会或者完全没有必要去学---对于还不会而又想学的人来说,没有什么东西是简单的. | |
--题记 | |
ruby on rails是一个基于ruby脚本语言的web开发框架.因此凡是web开发涉及到的知识,她也会涉及到. | |
1.SQL:结构化查询语言(Structured Query Language),这个知识点是必须的 | |
2.HTML:超文本标记语言(Hypertext Markup Language),这个知识点也是必须的(比sql简单,但必须) | |
3.CSS:CSS是Cascading Style Sheet 的缩写,可选的知识点,但最好是知道一点.通常情况下,这个知识点也是必须的 | |
4.Javascript:可选的知识点,最好是知道一点,通常情况下,这个知识点也是必须的 | |
5.Ruby:不用说,这是必须的 |
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
require "active_support" | |
s=Date.new(2007,1,1) | |
e=Date.new(2007,12,31) | |
s.upto(e) do |d| | |
puts d | |
end |
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
默认一小时后关机 | |
def shutdown(sec=3600) | |
system("shutdown -s -f -t " + sec.to_s) | |
end | |
shutdown | |
可以考虑用active_support指定详细的关机时刻!例如 | |
require "active_support" |
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
def open() | |
conts={} | |
callcc do |o| #o是open主节点 | |
callcc{|o1|#o1是子节点1 | |
conts[:o1]=o1 | |
puts "start 1" | |
o.call #跳到主节点后,子节点2不访问 | |
}#这里是o1节点后 | |
callcc{|o2|#o2是子节点2 |
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
require 'net/http' | |
require "uri" | |
def ip2addr(ip="google.com") | |
url=URI.parse("http://ip138.com/ips8.asp") | |
res=Net::HTTP.post_form(url,:ip=>ip,:action=>2) | |
res.body.scan(/<ul class="ul1">(.*)<\/ul>/).to_s.scan(/<li>(.*?)<\/li>/) | |
end | |
puts ip2addr |
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
绝对主义和结果主义(相对主义)相对。 | |
”如果。。。那么。。。“是结果主义(相对主义) | |
而“a是A”则是绝对主义。 | |
绝对主义:某些行为本身的性质就有其对错,而不论其结果如何!~ | |
==================================== | |
实事求是。 |
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
Practicing A1 and A2 will develop the skill set to get IOIs instead of | |
IODs. The path to mastery is not found by telling a hot woman that | |
she is hot, offering to buy her a drink, being too persistent, or asking | |
her lots of questions. Instead, practice A1 (be indirect and nonneedy) | |
and practice A2 (stagger "negs" with demonstrations of higher value). | |
Voila! IOIs. | |
neg之丢了就跑原则其实是一种iod。因此,neg和iod是不同的。在neg的同时要结合iod,例如丢了就跑!!! |
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
Women are searching for a man whose reality is more fun and valuable | |
than their own. You must be congruent with the value that you | |
have to offer, and it must be apparent to the room, revealed through a | |
series of distinct demonstrations of high social value. Follow the | |
Three-Second Rule, and you will be in set much more often, resulting | |
in higher social proof. |
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
谜男最近已经发展出另一个社会互动理论了。基本上是说,女人会不断地衡量男人的价值,以决定是否有助于提高她们的人生目标。当晚我们在HIGHLANDS创造出来自的小宇宙中,我得到最高的价值肯定。而且正如大部分男人都会被苗条、金发、大胸部所制约,女人则对男人的地位和社交认同有感觉。 | |
----------------------------------------------------------- | |
社交与权力:女人只有通过社交才能获取权力。换言之,女人通过社交,从男人那里获取潜在的生存价值(感觉);男人通过社交获取潜在的繁衍价值。 |
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
任何你想从女人身上得到的东西一一爱慕、欲望、幻想一——都只是一种在她体内和脑部运作的内在过程。”他一边开车一边解释:“要唤起这个过程,你只需要问问题,而她为了回答你,会把问题运行过体内和脑部,仿佛体验到这些。然后她就会把爱慕的感觉联想到你身上。 | |
法拉利法则 |