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
| #!/usr/bin/php | |
| <?php | |
| ///////////////////// | |
| // slack2html | |
| // by @levelsio | |
| ///////////////////// | |
| // | |
| ///////////////////// | |
| // WHAT DOES THIS DO? | |
| ///////////////////// |
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
| #!/usr/bin/env php | |
| <?php | |
| date_default_timezone_set('GMT'); | |
| if (count($argv)<2) { | |
| echo $argv[0] . ' <token> <until>' . PHP_EOL; | |
| echo 'Example: ' . $argv[0] . ' abcd-12345678-123456789-12345 \'-3 months\'' . PHP_EOL; | |
| exit; | |
| } |
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
| // You will also need to create a gmail filter to add the 'send-to-slack' label | |
| // to any emails you want sent to slack | |
| function sendEmailsToSlack() { | |
| var label = GmailApp.getUserLabelByName('send-to-slack'); | |
| var messages = []; | |
| var threads = label.getThreads(); | |
| for (var i = 0; i < threads.length; i++) { | |
| messages = messages.concat(threads[i].getMessages()) |
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
| // ---- | |
| // libsass (v3.3.2) | |
| // ---- | |
| /*bad*/ | |
| .text { | |
| font-size: 12px; | |
| .open & { | |
| display: block; | |
| } |
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 | |
| $workingPath = 'c:/cleanup'; | |
| $cssFiles = $workingPath . '/working-folder'; | |
| $pngFiles = $cssFiles . '/png'; | |
| $files = glob($cssFiles . '/*.css'); | |
| $url = array(); | |
| $urldata = array(); |
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 | |
| $workingPath = 'h:/css'; | |
| $cssFiles = $workingPath . '/clear'; | |
| $cssFixedFiles = $workingPath . '/fixed'; | |
| $files = glob($cssFiles . '/*'); | |
| foreach($files as $k => $v) { | |
| $basename = basename($v); | |
| var_dump($basename); |
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="item item-1"></div> | |
| <div class="item item-2"></div> | |
| <div class="item item-3"></div> | |
| <div class="item item-4"></div> | |
| <div class="item item-5"></div> | |
| <div class="item item-6"></div> | |
| <div class="item item-7"></div> | |
| <div class="item item-8"></div> | |
| <div class="item item-9"></div> | |
| <div class="item item-10"></div> |
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
| rd /s/q "%allusersprofile%\start menu\programs\games" | |
| the rd stands for remove directory | |
| The /s switch is for all sub directories and files in the dir | |
| The /q switch is for quiet mode, which means it wont ask you for confirmation |
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
| //carousel-nav | |
| $( "#carousel1-nav li" ).each(function( index ) { | |
| $(this).attr('data-slide-to', index); | |
| }); | |
| // $('#nofx').html('<ol></ol>'); | |
| // $( "#carousel1 .item" ).each(function( index ) { | |
| // $('#nofx ol').append('<li data-slide-to="' + index + '">' + index + '</li>'); | |
| // }); |
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 type="text/javascript"> | |
| function changeBox() | |
| { | |
| document.getElementById('div1').style.display='none'; | |
| document.getElementById('div2').style.display=''; | |
| document.getElementById('password').focus(); | |
| } | |
| function restoreBox() | |
| { |
NewerOlder