defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder ShowTabView -bool true
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
killall Finder
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
class CacheBooleanField(serializers.BooleanField): | |
EXPIRES = 3600 * 24 * 30 | |
def field_from_native(self, data, files, field_name, into): | |
result = super(CacheBooleanField, self).field_from_native( | |
data, files, field_name, into | |
) | |
value = into.get(field_name, self.default) | |
cache.set(self.get_key(), value, self.EXPIRES) | |
return result |
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
# Original Idea: http://djangosnippets.org/snippets/2124/ | |
from functools import wraps | |
from django.db.models.signals import pre_save | |
from django.db.models.signals import post_save | |
from django.db.models.signals import pre_delete | |
from django.db.models.signals import post_delete | |
from django.db.models.signals import m2m_changed | |
def autoconnect(cls): | |
""" |
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
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env REUSE_XP="no" IEVMS_VERSIONS="8" bash |
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
window.addSnapScroll = ($element) -> | |
width_of_two_columns = 550 # (Width of column 270 + padding of column 10) * 2 - 10 | |
data = {} | |
$element.bind 'touchstart', (e) -> | |
if document.width > width_of_two_columns | |
return | |
page_x = e.originalEvent.touches[0].pageX | |
page_y = e.originalEvent.touches[0].pageY | |
$this = $ this |
- Intel i7-7700K
- ASUS ROG Strix Z270I
- Corsair Vengeance LPX 32GB (2 x 16GB)
- SSD Samsung 950 PRO NVMe 512GB
- Fractal Design Node 202 Black with Integra SFX 450w PSU Slim Profile Mini-ITX Computer Case
- Scythe Big Shuriken 2
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
# reference: https://github.com/github/gemoji/blob/master/db/emoji.json | |
module.exports = [ | |
['😀', 0, 'grinning'] | |
['😃', 0, 'smiley'] | |
['😄', 0, 'smile'] | |
['😁', 0, 'grin'] | |
['😆', 0, 'laughing, satisfied'] | |
['😅', 0, 'sweat_smile'] |
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
{ | |
Platform | |
} = require 'react-native' | |
getBottomTabsHeight = -> | |
if Platform.OS is 'android' | |
return 56 | |
if Platform.OS is 'ios' | |
return if isIphoneX() then 84 else 50 |
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
useForceUpdate = -> useState()[1] | |
useDebouncedForceUpdate = _.debounce useForceUpdate, 100 | |
useCollectionBinder = (collection) -> | |
forceUpdate = useForceUpdate() | |
useEffect -> | |
collection.on 'add remove sort reset', forceUpdate |
- Intel i7-7700K
- ASUS ROG Strix Z270I
- Corsair Vengeance LPX 32GB (2 x 16GB)
- SSD Samsung 950 PRO NVMe 512GB
- Fractal Design Node 202 Black with Integra SFX 450w PSU Slim Profile Mini-ITX Computer Case
- Scythe Big Shuriken 2