Skip to content

Instantly share code, notes, and snippets.

View umcherrel's full-sized avatar
🍵

Vasiliy umcherrel

🍵
View GitHub Profile
@MattRix
MattRix / UnityEditorIcons.txt
Last active April 20, 2025 12:53
A list of all the built-in EdtiorGUI icons in Unity. Use EditorGUIUtility.IconContent([icon name]) to access them.
ScriptableObject Icon
_Popup
_Help
Clipboard
SocialNetworks.UDNOpen
SocialNetworks.Tweet
SocialNetworks.FacebookShare
SocialNetworks.LinkedInShare
SocialNetworks.UDNLogo
animationvisibilitytoggleoff
gulp.task('eslint', function () {
gulp.src(config.src)
.pipe(eslint({
extends: 'eslint:recommended',
plugins: [
'react'
],
ecmaFeatures: {
'modules': true,
'jsx': true
@hlung
hlung / UIRefreshControl+beginRefreshing.h
Last active October 10, 2018 09:31
A UIRefreshControl beginRefreshing method that actually works
//
// UIRefreshControl+beginRefreshing.h
// Kibo
//
// Created by Hlung on 3/6/15.
// MIT License
//
#import <UIKit/UIKit.h>
@nkbt
nkbt / .eslintrc.js
Last active April 1, 2025 03:07
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@swankjesse
swankjesse / RetrofitCachingExample.java
Created June 29, 2013 03:03
Demonstrate HTTP caching with OkHttp and Retrofit.
/*
* Copyright (C) 2013 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@adilsoncarvalho
adilsoncarvalho / kernel-task-fixer.sh
Created January 7, 2013 03:31
Fixing the issue that was making kernel_task be always at 300% on Mac -- still no idea how to make the fans get back at 2.000 rpm
# from: http://www.rdoxenham.com/?p=259
# Mine is Model Identifier: MacBookPro8,3
system_profiler -detailLevel mini | grep "Model Identifier:"
cd /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/ACPI_SMC_PlatformPlugin.kext/Contents/Resources
sudo mv MacBookPro8_3.plist ~/Desktop
sudo reboot now
@cbess
cbess / gist:4444374
Last active March 16, 2020 06:10
Xcode Delete and Duplicate Selected Lines
<key>Customized</key>
<dict>
<key>Delete Line</key>
<string>selectLine:, deleteBackward:</string>
<key>Duplicate Lines</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
<key>Duplicate Current Line</key>
<string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string>
</dict>