Skip to content

Instantly share code, notes, and snippets.

View MarksCode's full-sized avatar

Ron Marks MarksCode

View GitHub Profile
I want to set a label's text with a string that's partly bold. The words I want to make bold all begin with the same letter, say "~".
For example I could have the string, "This ~word is bold, and so is ~this"
Then the label's text would contain the string "This word is bold, and so is this" where "word" and "this" are bold.
Does anybody know if it's possible to make a function like this? I tried the following:
func makeStringBoldForLabel(str: String) {
var finalStr = ""
import UIKit
import Firebase
import GoogleSignIn
import UserNotifications
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
let gcmMessageIDKey = "gcm.message_id"
// ==UserScript==
// @name AnyFlairs
// @author Capernicus
// @version 2.2
// @include http://*.koalabeast.com:*
// @include http://tagpro-*.koalabeast.com*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
@MarksCode
MarksCode / Coin_Exchange.js
Created February 3, 2017 10:28
Coin Exchange Problem (max combinations)
//************************************************************************//
// Coin Exchange Problem //
// most combinations to exchange n cents with m coins {C1, C2, ... , Cm} //
// by Ron Marks //
// ex input: 5 3 //
// 1 2 3 //
// output: 4 //
// Explanation: 5 cents, 3 coins (1, 2, 3) //
// { (1,1,1,1,1), (1,1,1,2), (1,2,2), (1,1,3), (2,3) } //
// Final Array: //
// ==UserScript==
// @name HomeScripts
// @version 0.1
// @description Show popular scripts on homepage
// @author Capernicus
// @include http://tagpro-*.koalabeast.com*
// ==/UserScript==
function showScripts() {
$('#homeScripts').toggle();
// ==UserScript==
// @name HomeScripts
// @version 0.1
// @description Show popular scripts on homepage
// @author Capernicus
// @include http://tagpro-*.koalabeast.com*
// ==/UserScript==
window.onload = function(){
var targetDiv = document.getElementsByClassName('video-container')[0];
// ==UserScript==
// @name HomeScripts
// @version 0.1
// @description Show popular scripts on homepage
// @author Capernicus
// @include http://tagpro-*.koalabeast.com*
// ==/UserScript==
window.onload = function(){
var targetDiv = document.getElementsByClassName('video-container')[0];
// ==UserScript==
// @name HomeScripts
// @version 0.1
// @description Show popular scripts on homepage
// @author Capernicus
// @include http://tagpro-*.koalabeast.com*
// ==/UserScript==
window.onload = function(){
var targetDiv = document.getElementById('player');
// ==UserScript==
// @name AnyFlairs+
// @author Capernicus
// @version 2.0
// @include http://*.koalabeast.com:*
// @include http://tagpro-*.koalabeast.com*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
(function () {
// ==UserScript==
// @name AnyFlairs+
// @author Capernicus
// @version 1.0
// @include http://*.koalabeast.com:*
// @include http://tagpro-*.koalabeast.com*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
(function () {