!
- - PowerPoint PPT Presentation
- - PowerPoint PPT Presentation
! !"#$%"$&#%&'($&)$*+#"$&,-&./$),0$1& 23#45#%6&,%&',7&,-&)"#$%'#-#"&",073'#%6 8#4.*9&:.),% (;2#'<49 ;(0.),% ! &
! & http://www.pcworld.com/article/223409/move_over_dr_soong_ girls_can_build_android_apps_too.html http://bit.ly/hOnbWg &
&
&
&
"
!
/#"=$5&(.*5&7*,24$0
& >?)&,-&0#44#,%)&,-&@AB)&C 5.9& >??)&,-&0#44#,%)&,-&$+$%')&C& 5.9 >???)&,-&0#44#,%)&,-&5.'.& 7,#%')
& & &
D.'.&)"#$%"$E
& & & &
#$%&'(%!)%*+&
& %),-)%%*-), (#./ &0-%)0% /#01-),
)%*+& )%*+& )%*+& )%*+&
F2'.#%& & !"*32 & GH74,*$ & :,5$4 & #I'$*7*$'
/..23445-.67849:;<=>
!
find . | awk -F. '{print $3}' | sort | uniq - c | sort –n
&
21 txt 23 h 28 tcl 29 cnf 29 nginx 48 c 48 sql 120 html 121 js 152 conf 341 sh 584 py
!
J(9&%,/E
K46,*#'(0)&L & F%M5$0.%5&",073'#%6&L & 5.'.&5.'.&5.'.
&
'($&*$.4& ",%'#%$%')&,-& '($&/,*45
http://bit.ly/r1OoHn
&
http://bit.ly/mPLOTc
K)',0$'*9&N*,O$"'
http://bit.ly/qRns6E
G%*,%1&832M.%5M!7,=$&,-&D$"$#'
http://bit.ly/pAoboI ?'*(#7!@*'A%0.& B%0*%.!@*'A%0.&
/..2&344,-./C560'(4+*%$0')$#84&.*#.#D5''.0#(2
P-49#%6&".*Q
J(.'&4.%63.6$)&.*$&#%&.&7.6$E
!
".4"34.'#,%)&,%&)'*$.0)&,-&5.'.
"4#"=&$+$%' R3$3$ & EC%C%!*%#+%* 8SSN& KNT *$5#) *$5#) F
!
&
!
$%'*,79&".4"34.'#,%
def ghash2lang(g, Ri, min_count=3, max_entropy=0.2): """ returns the majority vote of a langauge for a given hash """ lang = R.zrevrange(g,0,0)[0] # let's calculate the entropy! # possible languages x = R.zrange(g,0,-1) # distribution over those languages p = np.array([R.zscore(g,langi) for langi in x]) p /= p.sum() # info content I = [pi*np.log(pi) for pi in p] # entropy: smaller the more certain we are! - i.e. the lower our surprise H = -sum(I)/len(I) #in nats! # note that this will give a perfect zero for a single count in one language # or for 5K counts in one language. So we also need the count.. count = R.zscore(g,lang) if count < min_count and H > max_entropy: return lang, count else: return None, 1
http://4sq.com/96kc1O
J(.'&4,".'#,%)&.*$&*$4$+.%'&',&.& @ABE
&
/..2344&0*%$/%#+&')7860'(4GHII4H"4IJ4K-+%'L&'&#L(8L7-M%LM*%%&.87%4
!
"4#"=&5#)'*#23'#,%&5.'.
8,/&5,&7$,74$&"4#"=&,%&@AB)& ,+$*&'#0$E
!
!
%,*0.4&"4#"=&5#)'*#23'#,%)
!
&
!
&
!
&
!
&
!
.2%,*0.4&"4#"=&5#)'*#23'#,%)
&
&
!
"43)'$5&@AB)
J(.'U)&'*$%5#%6E
!
!
&
&
NN
!
! !