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
#init variables | |
endcase = 0 | |
moveNum = 0 | |
$firstmove = 0 | |
$a,$b,$c,$d,$e,$f,$g,$h,$i = "?", "?", "?", "?", "?", "?", "?", "?", "?" | |
$v = "?" | |
def reset(a,b,c,d,e,f,g,h,i) | |
system('clear') |
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
def getgst | |
d { 'gets fired' } | |
s = Building.get_gst_for_building(params[:buildinginfo]) | |
d { s.to_s('F') } | |
@var = s.to_s('F') | |
respond_to do |format| | |
format.html { render :text => @var.html_content } | |
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
~ $ ls | |
app db heroku_key.txt.pub public ruby-versions.yml | |
bin Gemfile lib Rakefile test | |
config Gemfile.lock log README.md tmp | |
config.ru heroku_key.txt my_log.txt README.rdoc vendor | |
~ $ cd bin | |
~/bin $ ls -la | |
total 21652 | |
drwx------ 3 u22794 22794 4096 2014-06-25 17:49 . | |
drwx------ 14 u22794 22794 4096 2014-06-25 17:50 .. |
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
def update | |
d { @help } | |
respond_to do |format| | |
if @help.update(help_params) | |
format.html { redirect_to @help, notice: 'Help was successfully updated.' } | |
format.json { render :show, status: :ok, location: @help } | |
#redirect_to action: "index" | |
else | |
format.html { render :edit } | |
format.json { render json: @help.errors, status: :unprocessable_entity } |
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
<%= submit_tag "Save Changes", :id => "special_message",:class => "btn btn-success navbar-btn", data: { confirm: "" } %> |
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 FillablePdfForm | |
attr_writer :template_path | |
attr_reader :attributes | |
def initialize | |
fill_out | |
end | |
def export(output_file_path=nil, tenantname) |
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 ApplicationController < ActionController::Base | |
# Prevent CSRF attacks by raising an exception. | |
# For APIs, you may want to use :null_session instead. | |
protect_from_forgery with: :exception | |
helper_method :current_user | |
before_action :require_login | |
private | |
def require_login |
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
$("#cheque_delete").hover -> | |
window.alert "calls method" |
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
<script> | |
var bugSummaryApp = angular.module('bugSummaryApp', []); | |
var bugslist = null; | |
var bugdetails = null; | |
bugSummaryApp.factory("BugService", ['$http', function(http) { | |
var webserviceURL = "/invokeWebService?webserviceHost=http://trceit-dev-env.elasticbeanstalk.com:8080&webservicePathURL=/getData"; | |
http.get(webserviceURL).success(function(data) { |
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 bugSummaryApp = angular.module('bugSummaryApp', []); | |
bugSummaryApp.factory('bugFactory', function($http) { | |
var webserviceURL = "/invokeWebService?webserviceHost=http://trceit-dev-env.elasticbeanstalk.com:8080&webservicePathURL=/getData"; | |
var bugFactory = { | |
async: function() { | |
var promise = $http.get(webserviceURL).then(function (response) { | |
OlderNewer