Skip to content

Instantly share code, notes, and snippets.

View danieldogeanu's full-sized avatar

Daniel Dogeanu danieldogeanu

View GitHub Profile
@danieldogeanu
danieldogeanu / RecentProjectsAndroidStudio
Created May 6, 2018 16:09
Where the paths of Recent Projects is stored in Android Studio 3.1.x on Windows 10.
`C:\Users\<USERNAME>\.AndroidStudio3.1\config\options\recentProjects.xml`
@danieldogeanu
danieldogeanu / ScaleAndroidStudioOnSecondaryDisplay
Last active May 6, 2018 14:21
Scale Android Studio 3.1.1 on Secondary Display on Windows 10 (HiDPI)
Steps for Windows 10:
1. Open Android Studio and go to `Help > Edit Custom Properties...` from the menu.
2. In the `idea.properties` file that opens, add `sun.java2d.uiScale.enabled=true` (without backticks or semicolon at the end).
3. Save the file and restart Android Studio.
The point is this: With JRE scaling disabled, when you move IDEA to the secondary screen, scaling is done by MS Windows.
It simply scales down (or up, depending on your monitor scale) the whole window resulting in that you see the blurred content.
@danieldogeanu
danieldogeanu / ConfigGitLineEndings
Last active March 11, 2018 05:55
Force Git to use LF line endings.
git config core.eol lf
git config core.autocrlf input
@danieldogeanu
danieldogeanu / AfterInstallingNode
Last active September 14, 2017 19:36
After installing Node.js, install the following globally, before installing local repositories for development. This will prevent errors when installing SASS. Once installed, validate Python is found in the correct folder: `C:\Users\{yourusername}\.windows-build-tools\python27\python.exe `
npm install --global --production windows-build-tools
npm install --global node-gyp
@danieldogeanu
danieldogeanu / BringBackOpenCMDHere
Created April 30, 2017 00:56
Bring back 'Open command window here' in context menu when pressing Shift key, on Windows 10.
1. Open the Registry Editor (Win+R and type regedit);
2. Navigate to:
HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
HKEY_CLASSES_ROOT\Directory\shell\cmd
HKEY_CLASSES_ROOT\Drive\shell\cmd
3. Gain registry key permissions:
- right click on the key (folder in the left side);
- select Permissions...;
@danieldogeanu
danieldogeanu / RecoverReducedUSBStorage
Created February 23, 2017 20:55
Recover reduced USB storage.
- Open CMD and type 'diskpart';
- Type 'list disk' and find the number of your USB flash disk;
- Type 'select disk x' (where x is your disk number);
- Type 'clean' to remove all partitions;
- Type 'create partition primary' to create a new primary partition.
@danieldogeanu
danieldogeanu / ChangeWAMPRootDirectory
Created February 23, 2017 11:05
Change WAMP Root Directory
- Go to 'C:\wamp64\bin\apache\apache2.4.18\conf', open 'httpd.conf' and change the DocumentRoot and <Directory> paths.
- Next, go to 'C:\wamp64\bin\apache\apache2.4.18\conf\extra', open 'httpd-vhosts.conf' and do the same thing as above.
@danieldogeanu
danieldogeanu / DisableNativeDateTimeInputs.js
Last active December 17, 2016 05:26
An alternative to disable native Date/Time inputs, with the help of Modernizr.
// Disable Native Date/Time Inputs
var dateInputs = [
'input[type="date"]',
'input[type="datetime"]',
'input[type="datetime-local"]',
'input[type="month"]',
'input[type="week"]',
'input[type="time"]'
];
@danieldogeanu
danieldogeanu / DisableSpinnerAndNativeCalendarDropdown.scss
Created December 17, 2016 05:20
Disable Spinner and Native Calendar Dropdown
// Disable Spinner and Native Calendar Dropdown
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"] {
appearance: textfield;
&::-webkit-calendar-picker-indicator {
display: none;
@danieldogeanu
danieldogeanu / SVGFallback
Created November 27, 2013 07:09
SVG Fallbacks to create Retina ready designs without much hassle. From http://css-tricks.com/svg-fallbacks/
If you're using SVG as a background-image...
--------------------
CSS:
.my-element {
background-image: url(image.svg);
}
.no-svg .my-element {
background-image: url(image.png);