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
| // ---------- Configuration ---------- | |
| const FRIEND_WEIGHTS = { | |
| Kim: 0.976, | |
| Ryan: 0.95, | |
| Kristen: 0.95, | |
| Taran: 0.85, | |
| Rachel: 0.75, | |
| Paul: 0.65, | |
| Hillary: 0.45, | |
| Pierce: 0.25, |
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 python3 | |
| """ | |
| OpenAI TTS Number Generator | |
| Generates WAV files for numbers 1-8000 using OpenAI's Text-to-Speech API | |
| """ | |
| import os | |
| import sys | |
| import time | |
| import zipfile |
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 deepDiff(obj1, obj2) { | |
| function changes(obj1, obj2) { | |
| let diff = {}; | |
| for (let key in obj1) { | |
| if (obj2.hasOwnProperty(key)) { | |
| if (typeof obj1[key] === 'object' && typeof obj2[key] === 'object') { | |
| let deepChanges = changes(obj1[key], obj2[key]); | |
| if (Object.keys(deepChanges).length > 0) { | |
| diff[key] = deepChanges; | |
| } |
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 addConditionalPlugins(plugins) { | |
| const config = AppConfig.get(); | |
| if (config.responseCacheEnabled) { | |
| plugins.push( | |
| responseCachePlugin({ | |
| sessionId: async (requestContext) => | |
| requestContext.request.http?.headers.get("sc-user") ?? null, | |
| }) | |
| ); |
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
| @charset "utf-8"; | |
| /************************************************* | |
| ABOVE THE REST LUXURY CABINS | |
| Custom CSS for Design System | Michael Crowe | |
| *************************************************/ | |
| /* TOKENS | |
| ============================================== | |
| Color scale */ | |
| :root { |
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 | |
| use ExactTarget\ET_Get; | |
| use ExactTarget\ET_Client; | |
| use ExactTarget\ET_Subscriber; | |
| use Illuminate\Http\Request; | |
| class TestController extends Controller | |
| { | |
| /** |
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
| <html> | |
| <head> | |
| <title>For Randy</title> | |
| <style type="text/css"> | |
| .column { | |
| float: left; | |
| width: 23%; | |
| background: #ccc; | |
| margin: 10px 1%; |
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
| //▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼ SCREEN-SIZE LOGIC ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲// | |
| $(document).ready(function() { | |
| $window = $(window); | |
| function makeColumnHeightsMatch(container) { | |
| let elementHeights = $(container).map(function() { | |
| return $(this).height(); | |
| }).get(); | |
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 | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Exception; | |
| use Illuminate\Contracts\Auth\Access\Gate; | |
| use Illuminate\Contracts\Cache\Repository; | |
| use Log; | |
| use App\Contracts\Permission; |
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 | |
| namespace App\Http\Controllers\API; | |
| use App\Repositories\CategoryRepository; | |
| use App\Http\Controllers\Controller; | |
| use Illuminate\Http\Request; | |
| use App\Permission; | |
| use App\Category; | |
| use Debugbar; |
NewerOlder