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
| include $(GOROOT)/src/Make.inc | |
| TARG=bot | |
| GOFILES=*.go | |
| include $(GOROOT)/src/Make.cmd |
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
| $("#nav li:not(.selected)").hover( | |
| function () { | |
| $('.selected').addClass("selectedHover"); | |
| }, | |
| function () { | |
| $('.selected').removeClass("selectedHover"); | |
| } | |
| ); |
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 | |
| session_start(); | |
| if (!isset($login)) { | |
| header('Location: index.html'); | |
| } | |
| ?> | |
| <body> | |
| <iframe src="index.php"></iframe> | |
| </body> | |
| </html> |
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
| # Add swap method to router | |
| _.extend Backbone.Router.prototype, | |
| swap: (newView) -> | |
| @currentView.leave() if @currentView && @currentView.leave | |
| @currentView = newView | |
| $(@el).html @currentView.render().el | |
| # set original Backbone.View reference | |
| view = Backbone.View |
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
| module Haml::Filters::Markdown | |
| include Haml::Filters::Base | |
| lazy_require "redcarpet" | |
| def md(text) | |
| // redcarpet code | |
| 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
| var $win = $(window) | |
| , $nav = $('.subnav') | |
| , navTop = $('.subnav').length && $('.subnav').offset().top - 40 | |
| , isFixed = 0 | |
| processScroll() | |
| // hack sad times - holdover until rewrite for 2.1 | |
| $nav.on('click', function () { | |
| if (!isFixed) setTimeout(function () { $win.scrollTop($win.scrollTop() - 47) }, 10) |
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
| tell application "Messages" | |
| activate | |
| repeat with myBuddy in buddies | |
| if handler of myBuddy is "+18505555555" then | |
| repeat | |
| send "hey" to myBuddy | |
| end repeat | |
| end if | |
| end repeat | |
| end tell |
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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
| <script> | |
| $('#onArizonaClick').click(function(e) { | |
| //handle here | |
| }); | |
| </script> |
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 | |
| include('../../sqlconnection/config.php'); | |
| $business = array( | |
| "name" => $_POST['name'], | |
| "country" => $_POST['country'], | |
| "email" => $_POST['email'], | |
| "phone" => $_POST['phone'], | |
| "website" => $_POST['website'], | |
| "tagline" => $_POST['tagline'], | |
| "category" => $_POST['category'], |
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
| eval "$(rbenv init -)" | |
| export PATH=/usr/local/bin:/usr/local/sbin:$PATH |