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
| bundle exec mutant --include lib/ --require dynamics_crm --fail-fast --use rspec DynamicsCRM::Client |
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
| A Perfect Man | |
| Best of Me - Good | |
| Begin Again - Recommend | |
| Celeste and Jesse Forever - Good | |
| a case of you |
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
| SELECT (data_length+index_length)/power(1024,3) tablesize_mb | |
| FROM information_schema.tables | |
| WHERE table_schema='ProposalAgent' and table_name='proposals'; |
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
| for (i = 1; i <= 100; i++) { | |
| var f = (i % 3 == 0); | |
| var b = (i % 5 == 0); | |
| if (f && b) { | |
| console.log('fizzbuzz', i); | |
| } else if (f) { | |
| console.log('fizz', i); | |
| } else if (b) { | |
| console.log('buzz', i); | |
| } |
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
| sudo /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080 | |
| sudo /etc/init.d/iptables save | |
| sudo /etc/init.d/iptables start |
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
| find . -maxdepth 1 -type d -ctime +30 -exec rm -rf {} \; |
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
| c = Dentaku::Calculator.new | |
| c.add_function( | |
| name: :blank, | |
| type: :logical, | |
| signature: [:non_group], | |
| body: ->(var) { | |
| ap "Value: #{var}" | |
| return (var.to_s.strip.empty?) | |
| } |
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
| this.$().select2({ | |
| ajax: { | |
| url: "/search", | |
| type: 'GET', | |
| dataType: 'json', | |
| delay: 250, | |
| data: function (term) { | |
| return { | |
| q: term, | |
| id: params.id, |
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
| DROP procedure IF EXISTS `ClearSessions`; | |
| DELIMITER $$ | |
| CREATE PROCEDURE ClearSessions(IN days_ago INT) | |
| BEGIN | |
| DECLARE bDone INT; | |
| DECLARE count INT; | |
| DECLARE sessionId INT; |
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
| def mergesort( a ) | |
| n = a.size | |
| return a if ( n == 1 ) | |
| l1 = a[0...(n/2)] | |
| l2 = a[(n/2)..n] | |
| l1 = mergesort( l1 ) | |
| l2 = mergesort( l2 ) |