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
| jQuery(window).load(function() { | |
| // käydään kaikki youtube-kikkareet läpi, ja luodaan thumbnail | |
| jQuery('div.epgadget-externalvideo').each(function() { | |
| jQuery(this).after('<div class="Thumb"></div>'); | |
| var iframe = jQuery(this).find('iframe'); | |
| var iframe_src = iframe.attr('src'); | |
| var youtube_video_id = iframe_src.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/).pop(); |
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
| jQuery.ready({ DOM:true }, function($) { | |
| $("li[class^='tab-'].unselected").each(function() { | |
| if( $(this).find('span').length > 0 ) { | |
| if( $(this).find('span > a').length == 0 ) { | |
| $(this).addClass('HideElement'); | |
| } | |
| }; | |
| }); | |
| $("li[id^='Tab-'].unselected").each(function() { |
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
| // Most of the time you can do data loading in react-router's onEnter/onLeave hooks, which support async operations. If you're using Redux or some other flux implementation, you can dispatch a loading() action, perform your data fetching, and then dispatch a loaded() action once the data's ready. | |
| function fetchData(nextState, replace, done) { | |
| store.dispatch(loading()); | |
| doAsyncThing().then(() => { | |
| store.dispatch(loaded()); | |
| done(); | |
| }); | |
| } |
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
| # If you worked with React and JSX you probably noticed that you can't use JS comments when inside JSX sections | |
| # Add this to your Atom init script | |
| # Then add 'ctrl-cmd-/': 'comment-jsx' to your keymap.cson | |
| # Then when you are on a JS/JSX file, just press cmd+ctrl+/ to use JSX-style comments that work with JSX elements | |
| # Is not the most efficient way, but it's the cleanest and reliable one | |
| # FORK UPDATE 27.1.2016: | |
| # Overwriting "Toggle Comments" function: | |
| # '.workspace .editor:not(.mini)': | |
| # 'cmd-/': 'comment-jsx' |
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 | |
| require_once('workflows.php'); | |
| $w = new Workflows(); | |
| // $query = ltrim($argv[1]); | |
| // $parts = explode(' ', $query); | |
| // echo "\n\n New Run \n\n"; |
NewerOlder