- Delete Last Gist Commit
this will delete unsaved changes!
git reset --hard HEAD~1
git push -f origin master
| var $j = jQuery.noConflict(); | |
| $j(document).on(' ready wavesurfer-wp-init wavesurfer-markers-init', function() { // | |
| $j.each(wavesurfer, function(i) { | |
| wavesurfer[i].on('ready', function() { // Change the event if you need to | |
| // YOUR FUNCTION | |
| }); | |
| }); | |
| }); |
| <?php | |
| if ( @preg_match('/^' . $excluded_headings[$j] . '$/imU', | |
| // ==> | |
| if ( @preg_match('/^' . $excluded_headings[$j] . '$/mU', |
| $('#container').highcharts({ | |
| chart: { | |
| alignTicks: true, // When using multiple axis, the ticks of two or more opposite axes will automatically be aligned by adding ticks to the axis or axes with the least ticks. | |
| animation: true, // Set the overall animation for all chart updating. Animation can be disabled throughout the chart by setting it to false here. | |
| backgroundColor: '#FFF', // The background color or gradient for the outer chart area. | |
| borderColor: '#4572A7', // The color of the outer chart border. | |
| borderRadius: 5, // The corner radius of the outer chart border. In export, the radius defaults to 0. Defaults to 5. | |
| borderWidth: 0, // The pixel width of the outer chart border. | |
| className: null, // A CSS class name to apply to the charts container div, allowing unique CSS styling for each chart. | |
| defaultSeriesType: 'line', // Alias of type. |
| <?php | |
| /* | |
| Plugin Name: LearnDash Users Results - Customization | |
| Description: LearnDash Users Results - Customization | |
| Author: X-Raym | |
| Author URI: https://www.extremraym.com/ | |
| */ | |
| // Chane user name display | |
| add_filter( 'learndash_users_results_user_display', 'learndash_users_results_user_display', 10, 1 ); |
| var obj = function() { | |
| var self = this; // This is the trick | |
| this.data = "4"; | |
| this.do = function() { | |
| return self.data; // This is how to use it | |
| } | |
| } | |
| var test = new obj; |
this will delete unsaved changes!
git reset --hard HEAD~1
git push -f origin master
| -- | |
| // | |
| local | |
| var | |
| = {} | |
| = [] | |
| == |
| //https://stackoverflow.com/questions/11053516/css-styling-for-a-button-using-input-type-button-instead-of-button | |
| element { | |
| border:none; | |
| background-image:none; | |
| background-color:transparent; | |
| -webkit-box-shadow: none; | |
| -moz-box-shadow: none; | |
| box-shadow: none; | |
| } |
| print("Pair comparaison") | |
| array = {true, false, 1, 0, -1,"true","false","1","0","-1","",nil,{},{0},{1} } | |
| for i = 1, 15 do | |
| out = '' | |
| for j = 1, 15 do | |
| if array[i] == array[j] then | |
| out = out .. " " .. "0" | |
| else |
| first_item_db = -1.8913852603307 | |
| last_item_db = -24.660150110898 | |
| count_sel_items = 5 | |
| db_interval = (last_item_db - first_item_db) / (count_sel_items-1) | |
| for i = 1, count_sel_items do | |
| print(first_item_db + db_interval * (i-1)) | |
| end |