Go to the API v2 explorer and generate a token with update:tenant_settings
. Then call the tenants endpoint with the new HTML:
PATCH https://{YOUR_DOMAIN}/api/v2/tenants/settings
{
"change_password": {
"enabled": true,
def time_ago_in_words(timestamp) | |
minutes = (((Time.now - timestamp).abs)/60).round | |
return nil if minutes < 0 | |
case | |
when minutes < 1 then "less than a minute ago" | |
when minutes == 1 then "1 minute ago" | |
when minutes < 50 then "#{minutes} minutes ago" | |
when minutes < 90 then "1 hour ago" | |
when minutes < 1440 then "#{(minutes / 60).round} hours ago" | |
else |
#!/usr/bin/ruby | |
require 'open-uri' | |
require 'uri' | |
require 'net/http' | |
require 'json' | |
@user = '' | |
@pass = '' | |
@team = '' |
import {call, put, take, fork} from 'redux-saga/effects' | |
import {END} from 'redux-saga' | |
import CategoryActions, {CategoryTypes} from '../Redux/CategoryRedux' | |
// attempts to fetch category | |
export function* fetchCategoryServer (api) { | |
let action = yield take(CategoryTypes.CATEGORY_SERVER) | |
// check when it stopped | |
while (action !== END) { | |
yield fork(fetchCategoryAPI, api) |
# Note (November 2016): | |
# This config is rather outdated and left here for historical reasons, please refer to prerender.io for the latest setup information | |
# Serving static html to Googlebot is now considered bad practice as you should be using the escaped fragment crawling protocol | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name yourserver.com; | |
root /path/to/your/htdocs; |
#!/bin/bash | |
# Usage: slackpost <token> <channel> <message> | |
# Enter the name of your slack host here - the thing that appears in your URL: | |
# https://slackhost.slack.com/ | |
slackhost=PUT_YOUR_HOST_HERE | |
token=$1 |
// Requires https://www.npmjs.org/package/s3-policy and https://www.npmjs.org/package/node-uuid | |
var config = require('env/' + process.env.NODE_ENV), | |
policy = require('s3-policy'), | |
uuid = require('node-uuid'); | |
// SETUP S3 | |
const AWS_ACCESS_KEY = config.s3.accessKey; | |
const AWS_SECRET_KEY = config.s3.secret; | |
const S3_BUCKET = config.s3.bucket; |
use the build in sizes like @dimen/text_size_body_2_material
or style/TextAppearance.Material.Headline
.
Simple helper file for standard text sizes in material design. The sizes are provided by the material design documentation https://www.google.com/design/spec/style/typography.html#typography-roboto
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |