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
document.fonts.ready.then((fonts) => { | |
const fontFaces = Array.from(fonts); | |
console.log(fontFaces); | |
}); |
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
// Note this is against Twitter's Terms of Service, so it's just for fun :) | |
const btns = Array.from(document.querySelectorAll('[data-testid]')) | |
const unfollows = btns.filter(btn => btn.textContent == "Following") | |
for (let i = 0; i <= unfollows.length; i++){ | |
setTimeout(function () { | |
unfollows[i].click(); | |
setTimeout(function () { | |
const confirm = document.querySelector('[data-testid="confirmationSheetConfirm"]'); |
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
{ | |
"project_type": "Prospect", | |
"project": "2013120B", | |
"start_date": "2017-11-13", | |
"duration": 24, | |
"fee_construction": 25000000, | |
"fee_percent": 6, | |
"fee_total": 1580000, | |
"budget_pm_percentage": 9, | |
"budget_reserve": 10, |
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
class Organization < ApplicationRecord | |
has_one :subscription | |
end | |
class Subscription < ApplicationRecord | |
has_many :payments | |
# stripe_id | |
# plan_id | |
# last_four |
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 DATA = { | |
// Overall totals | |
total_fee: 1700500, // dollars | |
total_production: 1200500, // dollars | |
total_pm: 150500, // dollars | |
total_consultants: 200500, // dollars | |
total_reserve: 130500, // dollars | |
// Calendar Parameters |
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 DESIGN = { | |
panelNumber: 3, // how many panels total | |
overallWidth: 198, // inches | |
overallHeight: 72, // inches | |
panelWidth: 42, // inches, 33 for zinc | |
panelHeight: 138, // inches | |
crop: false, // stretch | |
gridSize: 2, // inches, [0.1 - 2.0] | |
gridType: "staggered", // [staggered, square] | |
perfShape: "circle", // [circle, diamond, square, hexagon] |
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
transition: cubic-bezier(0.16, 0.68, 0.43, 0.99); |
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 sdk = new Flux(API_KEY, {baseUrl: 'https://flux.io'}); | |
// The main view for the app | |
var FluxApp = function() { | |
var self = Object.create(FluxApp.prototype); | |
var render = function() { | |
var authView = AuthView(); | |
}; |
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
(function(){ | |
var $cta = $('.home-action'); | |
var DIV = 20; | |
var verticalsArr = []; | |
var verticalsArr2 = []; | |
var state = 0; | |
var width = $cta.width(); |
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
// Get element offset from top of page | |
function getOffset(el) { | |
el = el.getBoundingClientRect(); | |
return { | |
left: el.left + window.scrollX, | |
top: el.top + window.scrollY | |
}; | |
}; |
NewerOlder