Skip to content

Instantly share code, notes, and snippets.

View alyssasgable's full-sized avatar
♥️
"Self love is the most radical form of protest."

Alyssa Gable alyssasgable

♥️
"Self love is the most radical form of protest."
View GitHub Profile
@alyssasgable
alyssasgable / BrandLogo.txt
Created January 9, 2018 18:28
How To Add Brand Logo Image to Fabric Tool [cushionsource.com]
In order to add a logo to the brand in the Fabric Tool on the cushionsource.com website you have to:
1. Add a case to ocg-platform/cms/template/shared/js/FabricTool.js
case 'BRAND NAME':
brandclass = 'abc' /** Here you will put a short abbreviation for the brand */
break;
2. Add a property to ocg-platform/cms/template/shared/css/fabric-tool.css
.ftBrand-abc {
.get-logo(abc); /** Use same abbreviation used in Step 1 */
width: ##px; /** Here you will set the width of image */
}
@alyssasgable
alyssasgable / pushnotifications.txt
Created November 7, 2017 17:17
[Testing Push Notifications]
1. Make sure you checked the push notification switch in app capabilities.
2. Go into settings of app -> Notification settings -> Turn on Diagnostic Channel
3. Tap Settings bar 7 times and send token to computer. (Air drop)
4. Insert token into control panel and send diagnostic notifications.
@alyssasgable
alyssasgable / launcher.sh
Last active June 5, 2018 20:59
[Scanning Project]
#!/bin/sh
# launcher.sh
# navigate to home directory, then to this directory, then execute python script, then back home
cd /
cd home/pi/Desktop
sudo python scanner.py
cd /
@alyssasgable
alyssasgable / commands.txt
Last active November 6, 2017 17:15
[Helpful commands for scanning project] #commands
[Check syntax in nginx config file]
sudo nginx -t
[Checks syntax in php]
php -l filename.php
@alyssasgable
alyssasgable / permissiondenied.txt
Created October 27, 2017 16:39
[Permission Denied Echo in Terminal] #commands #terminal
sudo su -c "echo 'deb http://url' >> /etc/apt/sources.list"
@alyssasgable
alyssasgable / menuButtons.swift
Last active October 27, 2017 00:16
[Using Menu Buttons]
let topButtons = OCVMenuButtons(scheme: OCVMenuButtonTypes.three, circles: false, arrayIn: [
["text":"<#text#>","selector":"<#function#>"],
["text":"<#text#>","selector":"<#function#>"],
["text":"<#text#>","selector":"<#function#>"]],
parentVC: self)
//Read me file does not say parentVC: self
@alyssasgable
alyssasgable / manifest.swift
Last active October 27, 2017 00:12
[Open Manifest Link]
OCVManifestLoader().getManifestLinkForKey(key: "<#key#>", andWithAnalyticsID: "<#id#>", andViewToOpenIn: self)