View eee.ee
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCz9WzLA1FORyVhH1OIYGQAK5rq5R1DPAqNWRv14tDjf8XLgR6qchWhKU82jF+6oqy7534Or0vFAn2zKbGxyCcWz+zcXQyO5oGRMVhYQ/Q/1m0jfSdyOAoVsMZDWSOFM8MNXKfSAPnbXizb+gPfVA/sTxuT9Zy9BTpDf8pMxhmKs5rZtp5145L/UHeOWMNNkyf0BbIenxGb/Mkk+vt6sz72eHTvTc+9idNj389z/dcBd+rMbg5TOzv/Zz2xiVHbjBB3vJtogtLfBHGgt+BYka9fTvQEs4hYXfL4P1pQ/1uCeyUvXw59fjbbFBid7MyCaBO3hHFkMVX6gLkEudA9pApU0dZLrKkvqm9jnifn4aijff6wV3H5TjddFw3bCCs8y3j2h/Aw3QWAUT10anAHMes8iuryI25DNZZTvoFRrLvZPnSbblCc6asH8xr2Tpg42UGwzxGmlCdgG0Z8Ql9jdIly8eFOQAmshqTqQgUFaXc/hvPo19dkkkM8jFrhlohxtAE= roger@masterrace |
View tasks.json
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Rspec - all", | |
"type": "shell", | |
"command": "bin/rspec -fd", | |
"problemMatcher": [], | |
"group": { | |
"kind": "test", |
View rspec_model_testing_template.rb
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
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
View carrierwave.rb
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
#config/initializers/carrierwave.rb | |
module CarrierWave | |
module MiniMagick | |
# Rotates the image based on the EXIF Orientation | |
def exif_rotation | |
manipulate! do |img| | |
img.auto_orient | |
img = yield(img) if block_given? | |
img | |
end |
View CommonCommands
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
## MYSQL | |
create database db_name character set utf8 collate utf8_general_ci; | |
repair table table_name; | |
drop database db_name; | |
mysql -uroot -p db_name < file.sql | |
grant ALL PRIVILEGES ON dbName.* to 'ironman'@'%'; |
View gist:ab2f49318d74bf3050f5940ff500a2ea
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
/** | |
* Loop. | |
* | |
* Shows how to load and play a QuickTime movie file. | |
* | |
*/ | |
PGraphics pg; | |
import processing.video.*; |
View encrypt_decrypt.rb
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 'openssl' | |
class String | |
def encrypt(key) | |
cipher = OpenSSL::Cipher::Cipher.new('DES-EDE3-CBC').encrypt | |
cipher.key = Digest::SHA1.hexdigest key | |
s = cipher.update(self) + cipher.final | |
s.unpack('H*')[0].upcase | |
end |
View Preferences.sublime-settings
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
Show hidden characters
{ | |
"animation_enabled": false, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_size": 10, | |
"ignored_packages": | |
[ | |
"Markdown", | |
"Vintage" | |
], | |
"scroll_speed": 0, |
View Japanese style
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
⨀_⨀ | |
⨂_⨂ | |
(/◔ ◡ ◔)/ | |
°ﺑ° | |
(¬_¬) | |
(´・ω・`) | |
(ʘ_ʘ) | |
(ʘ‿ʘ) | |
(๏̯͡๏ ) | |
(◕_◕) |
View gist:66d8bade050357dce531
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
body { | |
width: 1200px; | |
} | |
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, | |
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 | |
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { | |
float: left; | |
} | |
.col-sm-12, .col-md-12, .col-lg-12 { |
NewerOlder