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
| // Das Resultat passt nicht, weil long 8 byte groß ist, also maximal 1.8446744e+19 sein kann | |
| // 49! ist aber 6.0828186e+62 und passt nicht rein, also schneidet der die Bytes ab und das Ergebnis passt nicht mehr | |
| public class BinomService { | |
| public static void main(String[] args) { | |
| System.out.println(binom(49, 6)); | |
| } | |
| public static long fac(int n) { | |
| if(n == 1) { |
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
| $max-page-width: 1600px | |
| $min-page-width: 320px | |
| $compact-max-page-width: 500px | |
| $break-xsmall: 320px | |
| $break-small: 480px | |
| $break-medium: 700px | |
| $break-large: 880px | |
| $break-xlarge: 1280px |
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
| .c-table | |
| +half-spacing(margin-bottom) | |
| +text-copy-s | |
| vertical-align: top | |
| td, | |
| th | |
| +medium-spacing(padding) | |
| vertical-align: top | |
| border-bottom: 1px solid $border-color |
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
| // Run with AllInputsFirmata | |
| import themidibus.*; //Import midibus library | |
| import processing.serial.*; //Import serial library | |
| import cc.arduino.*; | |
| // Wanna use midi input? | |
| boolean useMidi = false; | |
| // Arduino Ports | |
| int button = 7; |
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
| <?php | |
| header('Content-Type: image/jpeg'); | |
| $contents = file_get_contents($_GET['img']); | |
| $mutations = $_GET['mutations']; | |
| for($i = 0; $i < $mutations; $i++) { | |
| $contents = substr_replace($contents, str_shuffle("asdw4t98wfh9p8w3th98w3tsetf9wgt98hgt98rzt98hwz"), rand(strlen($contents)/10, strlen($contents)), 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
| # type your Python code here and press cmd+Return to run. | |
| reference = "n" | |
| glyph = Glyphs.font.glyphs[reference].layers[0] | |
| referenceWidth = glyph.width - glyph.LSB - glyph.RSB | |
| print "Reference:", reference, referenceWidth | |
| for char in ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]: | |
| curGlyph = Glyphs.font.glyphs[char].layers[0] | |
| width = curGlyph.width - curGlyph.LSB - curGlyph.RSB |
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
| # Linter Options | |
| options: | |
| merge-default-rules: false | |
| formatter: stylish | |
| max-warnings: 50 | |
| # File Options | |
| files: | |
| include: '**/*.s+(a|c)ss' |
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
| // These default values could be overwritten in a potentially cleaned up global config file ;-) | |
| $transition--easing: cubic-bezier(0.4, 0, 0.2, 1) !default | |
| $transition--slow: '0.2s 0.1s' !default | |
| $transition--fast: '0.1s' !default | |
| // The main mixin | |
| =transition($speed, $properties...) | |
| $transitions: () | |
| // Timing is fast, unless 'slow' is specified |
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
| // Wrap the quotes | |
| // in language specific | |
| // quotation marks if a | |
| // language is specified | |
| // --------------------- | |
| // German Quotes | |
| .c-quote--german &, | |
| html:lang(de) & | |
| &::before | |
| content: '„' |
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
| scale = 1.166666667 | |
| for char in Glyphs.font.selectedLayers: | |
| if char.LSB < 0: | |
| char.LSB = round(char.LSB/scale) | |
| else: | |
| char.LSB = round(char.LSB*scale) | |
| if char.RSB < 0: | |
| char.RSB = round(char.RSB/scale) | |
| else: |