Skip to content

Instantly share code, notes, and snippets.

View Adonais0's full-sized avatar
🦋
life is strange

Chuyao Wang Adonais0

🦋
life is strange
  • In the woods
View GitHub Profile
import maya.cmds as cmds
# Create polygon sphere
cmds.polySphere()
# Create polygon sphere with radius of 10
cmds.polySphere(radius=10)
# help
cmds.help("polySphere")
@Adonais0
Adonais0 / README.md
Created September 15, 2018 01:54 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
public class recursiveMultiply {
public static void main(String[] args) {
int result = product(10,5);
System.out.print(result);
}
public static int product(int a, int b) {
if(a == 0) return 0;
else if(a == 1) return b;
return (product(a-1,b) + b);
}
class squareProgression extends Progression{
protected double first;
protected double cur;
protected double firstValue1(){
cur = first;
return cur;
}
squareProgression(){
this(65536);
@Adonais0
Adonais0 / C_2.2_AbsoluteProgression.java
Created May 8, 2018 06:43
Exercise for algorithm and data structure in Java
// C-2.2
public class Progression{
//first value of the progression
protected long first;
//current value
protected long cur;
//constructor
Progression(){
cur = first = 0;
}
worldwide_gross_by_genre = []
Object.keys(dict).forEach(function(key){
di["genre"] = key
di["average"] = dict[key]
worldwide_gross_by_genre.push({
key:key,
value:dict[key]
})
})