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
import PullToRefresh from 'pulltorefreshjs'; | |
var drawerOrPageShown = false | |
function afterShowEvent(event){ | |
const element = event.target | |
if(element.tagName != "WA-PAGE" && element.tagName != "WA-DRAWER") { | |
return | |
} |
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 is a placeholder file so that the image can be uploaded |
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
<%= javascript_include_tag "webawesome", type: :module, defer: true, data: {webawesome: '/assets/webawesome-dist'} %> |
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 ruby | |
require "open3" | |
require "debug" | |
require 'strscan' | |
require 'json' | |
require 'time' | |
bundle_list, _status = Open3.capture2e("bundle list") |
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
# Showing how to set the request variant | |
def using_web_awesome? | |
if has_current_organization? | |
Flipper.enabled?(:web_awesome, current_organization) | |
else | |
Flipper.enabled?(:web_awesome, FlipperNoOrganizationActor.instance) | |
end | |
end |
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
# frozen_string_literal: true | |
class PracticalFramework::Components::Pagination < Phlex::HTML | |
include Pagy::Frontend | |
include FontAwesomeHelpers::ViewHelpers | |
include Phlex::Rails::Helpers::FormWith | |
include Phlex::Rails::Helpers::ContentTag | |
include Phlex::Rails::Helpers::HiddenFieldTag | |
attr_reader :request | |
attr_accessor :pagy, :item_name, :i18n_key |
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
// Example Swift configuration Actor; where the idea originated | |
actor WorkoutAppConfiguration { | |
static let instance = WorkoutAppConfiguration() | |
public let authenticationSessionSchema: String | |
public let HealthKitIdentifier: String | |
init(){ | |
self.authenticationSessionSchema = Bundle.main.infoDictionary!["AUTHENTICATION_SERVICES_CALLBACK_SCHEME"] as! String |
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
# Use the latest 2.1 version of CircleCI pipeline process engine. | |
# See: https://circleci.com/docs/configuration-reference | |
version: 2.1 | |
rails_build: &rails_build | |
resource_class: small | |
docker: | |
- image: cimg/ruby:3.2-browsers | |
- image: cimg/postgres:16.1 | |
environment: |
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
# prototype extracted from the Practical Framework | |
class PracticalFramework::Components::TiptapDocument < Phlex::HTML | |
class UnknownNodeTypeError < StandardError; end | |
class UnknownMarkupTypeError < StandardError; end | |
module NodeRendering | |
def render_node(node:) | |
case node[:type].to_sym | |
when :text |
NewerOlder