This file contains hidden or 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 made a huge version of my app's logo thats 15,000px by 15,000px. However when I put it an image view with content mode `aspect fit` the image still appears grainy when running my app on an iPhone. Here's a small part of the screen: | |
[![img][1]][1] | |
Does anybody know how to images sharp on iOS? | |
[1]: https://i.stack.imgur.com/f2o1u.png |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 () { |