This file contains 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
from math import cos, sin, radians | |
def piechart(data, width=100, height=100, stroke=40): | |
center_x = width / 2 | |
center_y = height / 2 | |
radius = min([center_x, center_y]) - 5 | |
paths = [] |
This file contains 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
from math import cos, sin, radians | |
def piechart(data, width=100, height=100): | |
center_x = width / 2 | |
center_y = height / 2 | |
radius = min([center_x, center_y]) - 5 | |
paths = [] |
This file contains 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
// Triangle | |
@mixin triangle($dir, $size: 50%, $color: currentcolor) { | |
$base: null; | |
@if $dir == 'up' { | |
$base: bottom; | |
} | |
@else if $dir == 'down' { | |
$base: top; |
This file contains 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
import sublime, sublime_plugin | |
class RemoveNonBreakingCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
if self.view.settings().get("remove_non_breaking_space") == True: | |
non_breaking_space = self.view.find_all(u"\u00A0") | |
non_breaking_space.reverse() | |
for r in non_breaking_space: | |
self.view.replace(edit, r, " ") |
NewerOlder