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
| function palindrome(str) { | |
| var punct = str.replace(/[.,-\/#!$%\^&\*;:{}=\-_`~()]/g, "").split(' ').join('').toLowerCase(); | |
| var string = punct.split('').reverse().join('').replace(/[.,-\/#!$%\^&\*;:{}=\-_`~()]/g, ""); | |
| if (punct == string) { | |
| return true; | |
| } | |
| else { | |
| return false; | |
| } | |
| } |
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
| class DocxConversion{ | |
| private $filename; | |
| public function __construct($filePath) { | |
| $this->filename = $filePath; | |
| } | |
| private function read_doc() { | |
| $fileHandle = fopen($this->filename, "r"); | |
| $line = @fread($fileHandle, filesize($this->filename)); |
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 count=30; | |
| var counter=setInterval(timer, 1000); //1000 will run it every 1 second | |
| function timer() | |
| { | |
| count=count-1; | |
| if (count <= 0) | |
| { | |
| clearInterval(counter); |
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
| $.expr[":"].contains = $.expr.createPseudo(function(arg) { | |
| return function( elem ) { | |
| return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0; | |
| }; | |
| }); |
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
| $(".search-song").keyup(function () { | |
| // work around to get case insensitive :contains | |
| $.expr[":"].contains = $.expr.createPseudo(function (arg) { | |
| return function (elem) { | |
| return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0; | |
| }; | |
| }); | |
| let searchSongValue = $(this).val(); | |
| let songField = $(".song"); | |
| let findSong = $(".song:contains('" + searchSongValue + "')").show(); |
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
| @echo off | |
| @setlocal | |
| set CODECEPT_PATH=vendor/bin/ | |
| "%CODECEPT_PATH%codecept.bat" %* | |
| @endlocal |
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
| .goog-te-banner-frame.skiptranslate { | |
| display: none !important; | |
| } | |
| body { | |
| top: 0px !important; | |
| } |
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
| function showAndHideText() { | |
| var showChar = 100; | |
| var ellipsestext = "..."; | |
| var moretext = "more"; | |
| var lesstext = "less"; | |
| $('#instructions-table td').each(function () { | |
| var content = $(this).html(); | |
| if (content.length > showChar) { |
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
| open(url, "r:ISO-8859-1:UTF-8").each_line |
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_relative '../../app/matko/nokogiri_scrape.rb' | |
| namespace :shipment do | |
| desc('Check if there any changes in shipments') | |
| task schedule: :environment do | |
| nok = NokogiriScrape.new | |
| nok.check_all_shipments | |
| end | |
| end |
OlderNewer