This file contains 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 scrollElement = function (element, scrollPosition, duration) { | |
var style = element.style; | |
// setup CSS transition duration and easing function | |
style.webkitTransition = | |
style.transition = duration + 's'; | |
style.webkitTransitionTimingFunction = | |
style.TransitionTimingFunction = 'ease-in-out'; | |
// use translate3d to force hardware acceleration |
This file contains 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 | |
class PerchTemplateFilter_length extends PerchTemplateFilter | |
{ | |
public function filterBeforeProcessing($value, $valueIsMarkup = false) | |
{ | |
$word = str_word_count(strip_tags($value)); | |
$m = floor($word / 200); | |
$s = floor($word % 200 / (200 / 60)); |
This file contains 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
struct ContentView: View { | |
var body: some View { | |
List { | |
PosterView() | |
Section(header: Text("Section")) { | |
TestView() | |
} | |
Section(header: Text("Section")) { |
This file contains 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
import CoreData | |
import SwiftUI | |
struct ContentView : View { | |
var request: FetchRequest<Task> | |
init(taskID: Int) { | |
self.request = FetchRequest<Task>(fetchRequest: ContentViewTest.taskRequest(taskID: taskID)) | |
} | |
This file contains 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
# ------------------------------------------------------------------------------ | |
# Common PHP Overrides | |
# | |
# Sometimes editing your php.ini file is impossible or even just annoying. | |
# Here are some of the most common settings that can (sometimes) be overridden. | |
# ------------------------------------------------------------------------------ | |
# php_value memory_limit 256M | |
# php_value post_max_size 16M | |
# php_value max_execution_time 90 |
This file contains 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 { | |
position: relative; | |
} | |
.carousel__slider { | |
display: flex; | |
align-items: center; | |
flex-wrap: nowrap; | |
overflow-x: auto; | |
scroll-snap-type: x mandatory; |
This file contains 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
---js | |
{ | |
layout: "layouts/default.njk", | |
title: "Search", | |
tags: "linksFooter", | |
eleventyImport: [ | |
"vacancy" | |
], | |
pagination: { | |
data: "collections.vacancy", |
OlderNewer