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
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 = "" |
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 UIKit | |
import Firebase | |
import GoogleSignIn | |
import UserNotifications | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
let gcmMessageIDKey = "gcm.message_id" |
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
// ==UserScript== | |
// @name AnyFlairs | |
// @author Capernicus | |
// @version 2.2 | |
// @include http://*.koalabeast.com:* | |
// @include http://tagpro-*.koalabeast.com* | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// ==/UserScript== |
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
//************************************************************************// | |
// 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: // |
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
// ==UserScript== | |
// @name HomeScripts | |
// @version 0.1 | |
// @description Show popular scripts on homepage | |
// @author Capernicus | |
// @include http://tagpro-*.koalabeast.com* | |
// ==/UserScript== | |
function showScripts() { | |
$('#homeScripts').toggle(); |
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
// ==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]; |
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
// ==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]; |
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
// ==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'); |
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
// ==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 () { |
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
// ==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 () { |