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
$.each(arrayFromPHP, function (i, elem) { | |
console.log(elem.User); | |
console.log(elem.EmailAddress); | |
$("<option/>").clone() | |
.val(elem.Emailaddresses) | |
.text(elem.User) | |
.appendTo("#emailaddresses"); | |
}); |
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($){ | |
$.fn.extend({ | |
formatInput: function(custom_settings) { | |
this.data("settings", $.extend({ | |
regex:".*", | |
format_number: true, | |
max_length: false, | |
errback: null | |
}, custom_settings); | |
return this.each(function() { |
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 Job < ActiveRecord::Base | |
belongs_to :catergory | |
# UPLOAD a file for the logo | |
def upload | |
uploaded_io = params[:job][:logo] | |
File.open(Rails.root.join('public', 'images', uploaded_io.original_filename), 'w') do |file| | |
file.write(uploaded_io.read) | |
end | |
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
// | |
// ImageLoadingOp.h | |
// PersonList | |
// | |
// Created by Marcio Valenzuela on 10/20/09. | |
// Copyright 2009 Personal. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> |
NewerOlder