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
| #!/bin/bash | |
| # | |
| # get-tilde.sh | |
| # | |
| # Clone the tilde repository and install it into the user's home directory | |
| # If you have wget installed, you can download the installer with this: | |
| # wget https://gist.githubusercontent.com/Kaizen86/0d2c2727231cae0328e529501ac0e406/raw/6b019bdc055aa0753958787f33d9d8d86a139e10/get-tilde.sh | |
| git clone https://github.com/Kaizen86/tilde.git | |
| # Did that work? |
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
| ## AT&T Assembly | |
| ## Variation of my Assembly highlighter, with added instructions that are | |
| ## specific to AT&T syntax and includes some tweaks to the other regular expressions. | |
| syntax asm "\.(S|s|asm)$" | |
| magic "at&t assembler source" | |
| comment ";" | |
| # Symbol visibility levels |
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
| # Intel Assembly | |
| ## Got fed up with the frankly inadequate default colours for assembly, so I made my own set. | |
| ## This process also taught me the basics of regular expressions, which was a nice bonus. | |
| syntax asm "\.(S|s|asm)$" | |
| magic "assembler source" | |
| comment ";" | |
| # Symbol visibility levels |
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
| using System; | |
| using System.Threading; | |
| using System.Drawing; | |
| using System.Windows; | |
| using System.Runtime.InteropServices; | |
| namespace MouseJiggler | |
| { | |
| class Program | |
| { |
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
| __author__ = "@kaizen86" | |
| import turtle | |
| def draw_polygon(sides, size): | |
| if sides < 3: | |
| # Stop here with an error | |
| raise Exception("A polygon must have at least 3 sides") | |
| step = size/sides # Reduce length of each side with higher side counts | |
| for i in range(sides): | |
| turtle.forward(step) # Draw side |