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
{ | |
"terminal.integrated.shellArgs.linux": [ //login shell | |
"--login" | |
], | |
"files.associations": { | |
"*.html.md.erb": "markdown", #Middleman | |
// "*.jsx": "javascript" | |
} | |
} |
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
require 'benchmark' | |
#RESULTS - 100k iterations | |
# user system total real | |
# 0.590000 0.000000 0.590000 ( 0.594802) <- create_id_num - int to radix | |
# 0.270000 0.000000 0.270000 ( 0.267420) <- create_id_str - choosing random characters | |
@radix = ('0'..'9').to_a + ('a'..'z').to_a + ['$','-','_','+','!','*','(',')',','] #URL safe, lowercase characters | |
def self.custom_radix_to_s val, digits |
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
<exporter> | |
<!-- identifier of the exporter --> | |
<name>1godot.xml</name> | |
<!-- name for the dropbox --> | |
<displayName>Godot XML Exporter</displayName> | |
<!-- description of the exporter --> | |
<description>Godot XML Exporter by aombk</description> |
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
#!/bin/sh | |
echo $0 | |
#with help from QA - http://apple.stackexchange.com/questions/103473/convert-animated-gif-to-mp4 | |
#https://ffmpeg.org/ffmpeg.html | |
#required dependencies | |
#sudo apt-get install imagemagick | |
#sudo apt-get install ffmpeg |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Geocoding service</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> | |
<!-- replace API key below --> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAD0ItEHgyIPJ5yzJiC9bH8bnksY20JUeE&libraries=places"></script> |
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
#!/bin/sh | |
# Auto-run via: | |
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/JTronLabs/941821b71a746dc31f418fd03a6c7236/raw/a7ad1b47d1ea72d06d304db3202475930b5362b6/atom_stater_pack.sh)" | |
echo "Downloading some awesome Atom packages. See the code at https://gist.github.com/JTronLabs/941821b71a746dc31f418fd03a6c7236" | |
#Editor | |
apm install linter # https://atom.io/packages/linter - available linters: http://atomlinter.github.io/ | |
apm install highlight-selected # https://atom.io/packages/highlight-selected |
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
License restrictions may vary | |
Icons: | |
https://icons8.com/ | |
http://game-icons.net/ | |
http://iconmonstr.com/ | |
Fonts: | |
https://fonts.google.com/ |
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
#!/bin/sh | |
mkdir $2 | |
#adds a '.' to the beginning of the passed in string, if it is not already there | |
add_dot_to_beginning_of_args () { | |
initialLetter="$(echo $1 | head -c 1)" | |
one=$1 |
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
#!/bin/bash | |
#Directory setup: Individual images constituting one spritesheet must be by themselves in their own directory. | |
# All images must be '.png' files with that extension in their name. | |
# In a spritesheet directory, the images must be name frame-1.png thru frame-LAST_FRAME_NUMBER.png | |
#utilizes ImageMagick for spritesheet creation | |
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
#!/bin/bash | |
echo $0 #this script requires ImageMagick, must be ran with bash | |
#copied from http://askubuntu.com/questions/179898/how-to-round-decimals-using-bc-in-bash | |
round() | |
{ | |
echo $(printf %.f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc)) | |
}; |
NewerOlder