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
| class TestVariable | |
| @@A=1 | |
| def print_v | |
| @@A | |
| end | |
| end | |
| @@A="WHY?" | |
| test= TestVariable.new |
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
| background do | |
| set_omniauth() | |
| click_link_or_button 'Sign up with Facebook' | |
| end |
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
| #/plugin/ruby-refactoring.vim | |
| " | |
| " Author: Enrique Comba Riepenhausen (@ecomba) & Paul King (@nrocy) | |
| " Email: enrique@edendevelopment.co.uk | |
| " Email: somecrocodile@gmail.com | |
| " | |
| " Acknowledgements: | |
| " Thanks to Gary Bernhardt for the inspiration for this tool and the original | |
| " ExtractVariable() and InlineTemp() functions. | |
| " |
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
| //TEST | |
| var sailsServer = require('../../support/sailsServer'); | |
| describe('AuthController', function(){ | |
| var app; | |
| beforeEach(function(done){ | |
| sailsServer.startServer(done); |
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
| function! test#ruby#minitest#executable() abort | |
| let docker = '' | |
| if filereadable('./Dockerfile') | |
| let docker = 'docker-compose -f docker-compose.test.yml run --rm web ' | |
| endif | |
| if system('cat Rakefile') =~# 'Rake::TestTask' || | |
| \ (exists('b:rails_root') || filereadable('./bin/rails')) | |
| if !empty(glob('.zeus.sock')) | |
| return docker . 'zeus rake test' |
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
| var Location = (function(repository){ | |
| var generateGuid = function() { | |
| function s4() { | |
| return Math.floor((1 + Math.random()) * 0x10000) | |
| .toString(16) | |
| .substring(1); | |
| } | |
| return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | |
| s4() + '-' + s4() + s4() + s4(); | |
| }; |
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
| require 'digest' | |
| require 'date' | |
| require 'faraday' | |
| key = "----" | |
| id = "..." | |
| datetime = Time.now.utc.strftime('%Y%m%d%H%M%S') | |
| digest = Digest::MD5.hexdigest("#{id}createsession#{key}#{datetime}") | |
| # url = URI("http://api.smitegame.com/smiteapi.svc/createsessionJson/#{id}/#{digest}/#{datetime}") |
OlderNewer