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
if (int.Parse(ihid.Value.ToString()) == 0) | |
{ | |
SqlConnection Cn = new SqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["exportaminasConnectionString"].ConnectionString); | |
Cn.Open(); | |
SqlCommand Cmd = new SqlCommand("insert into TBEXM_ServicosComerciais (pais, endereco, fone, fax, email, website, chefe) " + | |
"values (@pais, @endereco, @fone, @fax, @email, @website, @chefe) ", Cn); | |
Cmd.CommandType = CommandType.Text; | |
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
session_start(); | |
include '../../includes/inc_conexao.php'; | |
?> | |
<pre style="float:right; "><h3>Cookie</h3><? print_r($_COOKIE);?></pre> | |
<pre style="float:right; "><h3>Sessoes</h3><? print_r($_SESSION);?></pre> | |
<? | |
if($_POST["login"]!="" && $_POST["senha"]!="") { | |
$user = $_POST["login"]; |
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
def import | |
render :layout => false, :nothing => true | |
arquivo = "#{Rails.root}/Workbook1.csv" | |
#puts Benchmark.measure { | |
Tvschedule.transaction do | |
FasterCSV.foreach(arquivo, :encoding => 'u') do |row| | |
data = Time.parse(row[1]).strftime("%Y-%m-%d") | |
canal = Channel.where(:name => row[0]).select(:id).first | |
@tvschedule = Tvschedule.create |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.mongodb.mongod</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/Cellar/mongodb/1.6.4-x86_64/bin/mongod</string> | |
<string>run</string> |
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
Intranet::Application.configure do | |
# Settings specified here will take precedence over those in config/application.rb | |
# The production environment is meant for finished, "live" apps. | |
# Code is not reloaded between requests | |
config.cache_classes = true | |
# Full error reports are disabled and caching is turned on | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true |
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
filenames = Dir.glob(Rails.application.paths.app.models.collect { |path| File.join(path, "**/*.rb") }) | |
$class_names = [] | |
filenames.each do |filename| | |
$class_names += File.read(filename).scan(/class ([\w\d_\-:]+)/).flatten | |
end |
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
<head> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script> | |
<script src="/socket.io/socket.io.js" type="text/javascript" charset="utf-8"></script> | |
<script src="js/highstock.src.js" type="text/javascript"></script> | |
<script type="text/javascript" src="js/themes/gray.js"></script> | |
<script> | |
var chart; | |
var tweets = []; | |
var socket = io.connect('http://localhost:8080'); |
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
{ created_at: 'Thu Apr 11 19:13:36 +0000 2013', | |
id: 322427230401744900, | |
id_str: '322427230401744896', | |
text: 'empezó una @runtastic sesión de seguimiento en tiempo real. Ve mi progreso en vivo y anímame - http://t.co/IiCG7OP3RH #runtastic #iphone', | |
source: '<a href="http://runtastic.com" rel="nofollow">runtastic</a>', | |
truncated: false, | |
in_reply_to_status_id: null, | |
in_reply_to_status_id_str: null, | |
in_reply_to_user_id: null, | |
in_reply_to_user_id_str: null, |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
uglify: { | |
options: { | |
banner: '/*! application.js <%= grunt.template.today("yyyy-mm-dd hh:MM") %> */\n', | |
}, | |
build: { | |
src: 'public/assets/application.min.js', | |
dest: 'public/assets/application.min.js' | |
} |
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
<span class="status aguardando box-positioning"><i class="icon-clock-o"></i></span> |
OlderNewer