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
#!/etc/bin/ruby | |
for 1..100 |number| | |
if number mod 15 == 0 then | |
print "FizzBuzz" | |
else if number mod 5 == 0 then | |
print "Fizz" | |
else if number mod 3 == 0 then | |
print "Bizz" | |
else |
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
[ | |
{ | |
"x1":0.0, | |
"y1":0.0, | |
"x2":0.125, | |
"y2":0.125 | |
}, | |
{ | |
"x1":0.125, | |
"y1":0.0, |
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
{ | |
"veterans":[ | |
{ | |
"thumb": "", | |
"web": "", | |
"original": "", | |
"caption": "" | |
} | |
] | |
} |
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
<button type="button" class="btn btn-default" onclick="setText(this, $('pf'));">Mr.</button> | |
<button type="button" class="btn btn-default" onclick="$('#pf').val($(this).html());">Mrs.</button> |
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
enum BoxSize { | |
case small | |
case medium | |
case large | |
func value() -> CGFloat { | |
switch self { | |
case .small: return 1.0 | |
case .medium: return 2.0 | |
case .large: return 3.0 |
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
void HideCraftingPanels(){ | |
for(var i = 1; i < 7; i++) { | |
HideCraftingPanel("CraftItemsPanel" + i.ToString()); | |
} | |
} | |
public void ShowCraftPanel(int panelNumber ){ | |
HideCraftingPanels(); | |
ShowCraftingPanel("CraftItemsPanel" + panelNumber.ToString()); | |
} |
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
func _input(event): | |
if self.mouse_in_grid && !mouse_has_entered: | |
emit_signal("mouse_entered") | |
if !self.mouse_in_grid && mouse_has_entered: | |
emit_signal("mouse_exited") | |
if should_ignore_mouse || !self.mouse_in_grid: | |
return | |
if event is InputEventMouseButton: |