Skip to content

Instantly share code, notes, and snippets.

View nor0x's full-sized avatar
:octocat:
🗕🗗🗙

JL nor0x

:octocat:
🗕🗗🗙
View GitHub Profile
@nor0x
nor0x / UICollectionView + NSFetchedResultsController.swift
Last active March 21, 2021 12:52 — forked from nazywamsiepawel/UICollectionView + NSFetchedResultsController.swift
UICollectionView + NSFetchedResultsController Swift 3 / iOS 10
var _fetchedResultsController: NSFetchedResultsController<Entity>? = nil
var blockOperations: [BlockOperation] = []
var fetchedResultController: NSFetchedResultsController<Entity> {
if _fetchedResultsController != nil {
return _fetchedResultsController!
}
let fetchRequest: NSFetchRequest<Entity> = Entity.fetchRequest()
let managedObjectContext = (UIApplication.shared.delegate as! AppDelegate).managedObjectContext!
@nor0x
nor0x / shadow+cornerradius.swift
Created December 22, 2016 17:23
UICollectionViewCell -> Corner Radius AND Shadow
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
cell.contentView.layer.cornerRadius = 2.0
cell.contentView.layer.borderWidth = 1.0
cell.contentView.layer.borderColor = UIColor.clear.cgColor
cell.contentView.layer.masksToBounds = true;
cell.layer.shadowColor = UIColor.lightGray.cgColor
cell.layer.shadowOffset = CGSize(width:0,height: 2.0)
cell.layer.shadowRadius = 2.0
cell.layer.shadowOpacity = 1.0
@nor0x
nor0x / user.css
Created August 10, 2017 08:23
My Channel9 custom CSS
.navHolder {
background: linear-gradient(-45deg, red, indigo, orange, pink, yellow, lightgreen, green, blue, rebeccapurple, purple);
background-size: 400% 400%;
animation: animation 90s infinite;
}
@keyframes animation {
0%{background-position:0% 0%}
50%{background-position:100% 100%}
100%{background-position:0% 00%}
@nor0x
nor0x / outlook.js
Last active September 4, 2018 17:06
Outlook.com cleanup for tampermonkey
// ==UserScript==
// @name Outlook.com cleanup
// @namespace nor0x_scripts
// @version 0.1
// @description cleans up outlook.com
// @author nor0x
// @include https://outlook.live.com/*
// @grant none
// ==/UserScript==
@nor0x
nor0x / image_02.jpg
Last active April 9, 2019 10:36
image_02.jpg
image_02.jpg
@nor0x
nor0x / image_03.jpg
Last active April 9, 2019 10:36
image_03.jpg
image_03.jpg
@nor0x
nor0x / image_04.jpg
Last active April 9, 2019 10:36
image_04.jpg
image_04.jpg
@nor0x
nor0x / image_05.jpg
Last active April 9, 2019 10:36
image_05.jpg
image_05.jpg
@nor0x
nor0x / image_06.jpg
Last active May 3, 2019 13:46
image_06.jpg
image_06.jpg