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 { requestManager } from './'; | |
/* please keep these name singular * | |
* i.e 'card' instead of 'cards', etc... */ | |
export default { | |
activity: { | |
get: () => | |
requestManager.get('/api/activities') | |
}, |
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
def current_user | |
headers = request.headers | |
cookies[:jwt] = headers['X-Token'] if !cookies[:jwt] && headers['X-Token'].present? | |
result = Cookies::Decode.({}, cookies: cookies) | |
return unless result.success? && result[:decoded_jwt] | |
@current_user ||= User.includes(:user_identities) | |
.find_by(auth_token: result[:decoded_jwt][:auth_token]) |
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
require "active_job" | |
require "active_model" | |
class Flake < ActiveJob::Base | |
alias ActiveJob::Core#initialize before it is overwritten by ActiveModel::Model | |
alias active_job_initialize initialize | |
include ::ActiveModel::Model | |
include FlakeHelper |
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
[ | |
{ | |
"type": "container", | |
"title": "Registry", | |
"description": "Docker image registry", | |
"categories": ["docker"], | |
"platform": "linux", | |
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/registry.png", | |
"image": "registry:latest", | |
"ports": [ |
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
/* Slim line */ | |
h1 { | |
text-shadow: red 1px 0px, red 1px 1px, red 0px 1px, red -1px 1px, red -1px 0px, red -1px -1px, red 0px -1px, red 1px -1px; | |
} | |
/* Bold line */ | |
h1 { | |
text-shadow: red 1px 0px, red 1px 1px, red 0px 1px, red -1px 1px, red -1px 0px, red -1px -1px, red 0px -1px, red 1px -1px, red 0 0 3px, red 0 0 3px, red 0 0 3px, red 0 0 3px, red 0 0 3px, red 0 0 3px, red 0 0 3px, red 0 0 3px; | |
} |
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
/* ----------- iPhone 4 and 4S ----------- */ | |
/* Portrait and Landscape */ | |
@media only screen | |
and (min-device-width: 320px) | |
and (max-device-width: 480px) | |
and (-webkit-min-device-pixel-ratio: 2) { | |
} |