In your favorite text editor, open the following file :
- Windows
C:\Users\\AppData\Local\slack\app-\resources\app.asar.unpacked\src\static\ssb-interop.js
| /* | |
| * Numbered Pagination | |
| * http://www.wpexplorer.com/pagination-wordpress-theme/ | |
| */ | |
| if ( !function_exists( 'wpex_pagination' ) ) { | |
| function wpex_pagination($wpex_query) { | |
| $prev_arrow = is_rtl() ? '→' : '←'; | |
| $next_arrow = is_rtl() ? '←' : '→'; | |
| /* |
| <?php | |
| function valueExpected ($analyse, $expect, $strict = false) | |
| { | |
| if ($strict) | |
| { | |
| if ($analyse === $expect) | |
| { | |
| return '<span style="background-color:darkolivegreen; color:darkgrey;">Received : ' . | |
| $analyse . | |
| ', Expected : ' . |
| <?php | |
| /* | |
| * Accept array or string | |
| */ | |
| function convertSameCaracterToSameAscii($string) | |
| { | |
| $tab_chr = array() ; | |
| for($control = 0; $control < 32; $control++) { | |
| if ($control != 9 && $control != 10) { | |
| $tab_chr[]= chr($control) ; |
| <?php | |
| $a = array(); | |
| for ($i = 0; $i < 100000; $i++) { | |
| $a[] = $i; | |
| } | |
| $start = microtime(true); | |
| foreach ($a as $k => $v) { | |
| $a[$k] = $v + 1; | |
| } |
| #!/bin/bash | |
| # | |
| # To download from command line : | |
| # wget https://gist.githubusercontent.com/jonathanlaf/0240b8c401651af742ac826a69125440/raw/822eafea11056f55f5a239f8fa7062a43a05d600/fix_permission.sh | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # |
| /* | |
| * Use case: | |
| * Need to toggle the next row | |
| * | |
| * The first part of this script is for demo purpose. (In order to make the demo work, you need bootstrap.) | |
| */ | |
| // Get all the btns | |
| const informationToggleBtns = document.querySelectorAll('.toggle-info'); |
| <?php | |
| namespace App\Services; | |
| use Exception; | |
| use Illuminate\Support\Carbon; | |
| use PhpOffice\PhpSpreadsheet\Calculation\Functions; | |
| use PhpOffice\PhpSpreadsheet\IOFactory; | |
| use PhpOffice\PhpSpreadsheet\Reader\IReader; | |
| use PhpOffice\PhpSpreadsheet\Spreadsheet; |