Item | Target |
---|---|
MAIN | main router-view |
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
### | |
# This script converts $my_variable (snake_case) to $myVariable (smallCamelCase) in the given file or in the given folder and all its subfolders recursively. | |
import os | |
import re | |
def snake_to_camel(snake_str): | |
components = snake_str.split('_') | |
return components[0] + ''.join(x.title() for x in components[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
/** | |
* This file contains a logging proxy implementation that can be used to log constructor and method calls made to a target object. | |
* The `createLoggingProxy` function creates a logging proxy for a target object, which logs all constructor and method calls made to the target. | |
* The `LoggedMyClass` class is an example usage of the logging proxy, where an instance of `MyClass` is wrapped with the logging proxy to log its calls. | |
* The purpose of this file is to provide a utility for logging and tracking calls made to objects, which can be useful for debugging and monitoring purposes. | |
*/ | |
/** | |
* A counter for the number of calls made to the proxy. | |
* @type {number} |
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 | |
include_once 'google-api-php-client/vendor/autoload.php'; | |
$client = new Google_Client(); | |
$application_creds = 'service-account-credentials.json'; | |
$credentials_file = file_exists($application_creds) ? $application_creds : false; | |
define("SCOPE",Google_Service_Calendar::CALENDAR); | |
define("APP_NAME","Google Calendar API PHP"); |
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
// anchors smooth scroll | |
$('a[href^="#"]').on('click', function() { | |
var $targetLink = $('#' + $.attr(this, 'href').substr(1)), | |
dataToggle = $(this).attr('data-toggle'); | |
if($targetLink[0] && dataToggle != 'modal' && dataToggle != 'collapse') { | |
$('html, body').animate({ | |
scrollTop: $targetLink.offset().top - 110 | |
}, 500); | |
} |
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
//Single line comments are removed when Sass is compiled to CSS. | |
/* Multi line comments are preserved. */ | |
/* Variables | |
============================== */ | |
$body-color: #555; | |
$body-font: 'Roboto', sans-serif; |
Recursive image optimizer - optimize all the images in a parent folder and all its subdirectories without deph limitation.
- Install spatie image optimizer with Composer:
composer require spatie/image-optimizer
- Install all the optimizers on Linux server (SSH):
NewerOlder