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
| ln -s /Applications/TextMate.app/Contents/Resources/mate /bin/mate |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <root> | |
| <!-- | |
| Microsoft ResX Schema | |
| Version 2.0 | |
| The primary goals of this format is to allow a simple XML format | |
| that is mostly human readable. The generation and parsing of the | |
| various data types are done through the TypeConverter classes |
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
| protected override void Seed(Inspire.Models.DBContext context) | |
| { | |
| WebSecurity.InitializeDatabaseConnection( | |
| "DefaultConnection", | |
| "UserProfile", | |
| "UserId", | |
| "UserName", autoCreateTables: true); | |
| if (!Roles.RoleExists("Administrator")) | |
| Roles.CreateRole("Administrator"); |
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
| News.find_each(&:save) |
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
| HttpContext.Response.ContentType = "application/vnd.ms-excel"; | |
| HttpContext.Response.AddHeader("content-disposition", "attachment;filename=nome_arquivo-" + DateTime.Now.ToString("yyyy-MM-dd_HH-mm") + ".xls"); | |
| // HttpContext.Response.Charset = "utf-8"; | |
| HttpContext.Response.ContentEncoding = System.Text.Encoding.GetEncoding("windows-1250"); |
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
| <?php | |
| function iced_chart_display($atts, $content = null) | |
| { | |
| global $chart_id; | |
| wp_enqueue_script('google-visualization', 'http://www.google.com/jsapi', array('jquery'), '1.0', true); | |
| wp_enqueue_script('iced-visualization', plugins_url('iced-visualization.js', __FILE__), array('google-visualization'), '1.0', true); | |
| $type = $atts['type']; | |
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
| .Where(u => Regex.IsMatch(u.Nome, busca, RegexOptions.IgnoreCase)) |
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
| config.action_mailer.smtp_settings = { | |
| :address => "mail.adrianogodoy.com", | |
| :port => 587, | |
| :domain => "adrianogodoy.com", | |
| :user_name => "[email protected]", | |
| :password => "senha", | |
| :authentication => :login, | |
| :enable_starttls_auto => false | |
| } | |
| config.action_mailer.raise_delivery_errors = true |
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
| using Facebook; | |
| .... | |
| public ActionResult actionCallback() | |
| { | |
| try | |
| { | |
| if (String.IsNullOrEmpty(Request["code"])) | |
| throw new Exception("Não foi possível efetuar login na aplicação."); |
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
| string UrlAplicacao = Request.Url.Scheme+"://"+Request.Url.Authority + Request.ApplicationPath; |