Community
Cheatsheets
- GenServer Cheatsheet by Benjamin Tan Wei Hao
Books
Community
Cheatsheets
Books
<?php | |
function degree($polynomial){ | |
for($i = (count($polynomial)-1); $i>=0; $i--){ | |
if($polynomial[$i]!=0){ | |
return $i; | |
} | |
} | |
return 0; | |
} | |
function formatPolynomial($poly){ |
import subprocess | |
import re | |
def rmAll(): | |
output = subprocess.check_output("git status", shell=True) | |
matches = re.findall('deleted: .*', output) | |
for n in matches: | |
clean = n.replace("deleted: ","") | |
subprocess.call("git rm "+clean, shell=True) |
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |