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
G28 ; home all axes | |
G90 ; | |
; clean nozzle | |
M190 S[first_layer_bed_temperature] ; wait for bed temperature | |
M109 S[first_layer_temperature] ; wait for extruder temp | |
G1 X-28 F4800 ; | |
G1 Y0 F1000 ; | |
G1 Y-10 F1000 ; | |
G1 Y0 F1000 ; | |
G1 Y-12 F1000 ; |
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
{ | |
"person":{ | |
"id":2370365, | |
"first_name":"Kenneth John", | |
"last_name":"Balgos", | |
"gender":"Male", | |
"campus":"", | |
"year_in_school":"Graduated", | |
"major":"", | |
"minor":null, |
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
window.onbeforeunload = function (e) { | |
var message = "Your change has not been submitted, if you exit the page without submitting your change will not be received.", | |
e = e || window.event; | |
// For IE and Firefox | |
if (e) { | |
e.returnValue = message; | |
} | |
// For Safari | |
return message; |
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 facebook_user_id; | |
window.fbAsyncInit = function() { | |
// init the FB JS SDK | |
FB.init({ | |
appId : 'YOUR_APP_ID', // App ID from the App Dashboard | |
status : false, // check the login status upon init? | |
cookie : true, // set sessions cookies to allow your server to access the session? | |
xfbml : true // parse XFBML tags on this page? | |
}); |
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
pagecount = 2; | |
jQuery(document).on('click', '#loadmorebtn', function(e) { | |
jQuery('#loadmorebtn').addClass('spinning'); | |
jQuery.get('/news-archive/page/' + pagecount + '/', function(data){ | |
jQuery(data).find("#content .indiv-news").appendTo("#all-posts .container"); | |
}).done(function( data ) { | |
jQuery('#loadmorebtn').removeClass('spinning'); | |
}).fail(function( data ) { | |
jQuery('#loadmorebtn').removeClass('spinning'); | |
jQuery('#loadmorebtn').addClass('disabled'); |
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
/Volumes/Extra/htdocs/mpd_tool/vendor/ruby/1.9.1/gems/ruby-oci8-2.1.0/lib/oci8lib_191.bundle: [BUG] Segmentation fault | |
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0] | |
-- control frame ---------- | |
c:0069 p:-17528003920588 s:0232 b:0232 l:000231 d:000231 TOP | |
c:0068 p:---- s:0230 b:0230 l:000229 d:000229 CFUNC :require | |
c:0067 p:0012 s:0226 b:0226 l:000210 d:000225 BLOCK /Volumes/Extra/htdocs/mpd_tool/vendor/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239 | |
c:0066 p:0005 s:0224 b:0224 l:000215 d:000223 BLOCK /Volumes/Extra/htdocs/mpd_tool/vendor/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225 | |
c:0065 p:0045 s:0222 b:0222 l:000221 d:000221 METHOD /Volumes/Extra/htdocs/mpd_tool/vendor/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596 | |
c:0064 p:0041 s:0216 b:0216 l:000215 d:000215 METHOD /Volumes/Extra/htdocs/mpd_tool/vendor/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225 |
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
# set commission only for non artists or artists whose not buying their own art | |
Rails.logger.debug '*' * 100 | |
Rails.logger.debug "artist id: #{User.current.artist.id} product id: #{li.product.id} (#{!User.current.artist}) || (#{User.current.artist && !User.current.artist.products.include?(li.product)})" | |
li.set_commissions if !User.current.artist || (User.current.artist && !User.current.artist.products.include?(li.product)) |
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
require "bundler/capistrano" | |
require 'hoptoad_notifier/capistrano' | |
set :whenever_command, "bundle exec whenever" | |
require "whenever/capistrano" | |
# This defines a deployment "recipe" that you can feed to capistrano | |
# (http://manuals.rubyonrails.com/read/book/17). It allows you to automate | |
# (among other things) the deployment of your application. | |
# ============================================================================= | |
# REQUIRED VARIABLES |
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
#!/bin/sh | |
netstat -n -p | grep SYN_REC | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq > /tmp/ips.txt;for IP in `cat /tmp/ips.txt`; do iptables -A INPUT -s $IP -j DROP;done;service iptables 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
<div class="info"> | |
<center><h4><%= @keyword.post_survey_message.present? ? @keyword.post_survey_message : t('contacts.thanks.message') %></h4></center> | |
<br><br> | |
<script type="text/javascript"> | |
setTimeout(function() { | |
window.location="<%= facebook_logout_url %>?next=<%= request.referrer %>"; | |
}, 10000) | |
</script> |
NewerOlder