Skip to content

Instantly share code, notes, and snippets.

@gauravr-dev
gauravr-dev / iosstatusbarstyle.swift
Created March 22, 2018 14:24
UIStatusBar styling
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool
{
application.statusBarStyle = .lightContent
return true
}
//
class CartButtonView: UIButton {
let image = #imageLiteral(resourceName: "cart")
var count:NSString = "0"
override init(frame: CGRect) {
super.init(frame: frame)
}
required init?(coder aDecoder: NSCoder) {
#!/bin/bash
echo "removing evaluation key"
rm ~/.IntelliJIdea2017.3/config/eval/idea173.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea2017.3/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
@gauravr-dev
gauravr-dev / 0_reuse_code.js
Created March 29, 2017 11:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console