Skip to content

Instantly share code, notes, and snippets.

@guyjin
guyjin / hidpi.txt
Created March 16, 2019 17:09 — forked from simX/hidpi.txt
Enable HiDPI mode in Mountain Lion w/o Quartz Debug
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES;
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled;
// by the way, you need to logout and log back in for this to take effect. Or at least that's what
// Quartz Debug says. Who knows, maybe it's lying?
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from.
angular.module('fpfs')
.controller('speciesMeasuredPUCtrl', function (pu, $rootScope, contractAbstract, subView,
paymentUnits, contractSpecies, regionalSpecies, growl, Api,
fpfsSession, productsList, unitOfMeasure) {
var pu = this;
pu.regionalSpecies = regionalSpecies;
pu.contractRecord = contractAbstract;
pu.contractAbstract = contractAbstract;
pu.contractSpecies = contractSpecies;
@guyjin
guyjin / disable bin-links
Created June 3, 2014 05:33
Disable bin-links in NPM on Vagrant VM in Windows
@victor-homyakov
victor-homyakov / APIs affecting bfcache.md
Last active May 6, 2024 11:20
API, которые влияют на попадание страницы в bfcache
  • ✔︎ - не мешает попаданию страницы в bfcache
  • ✘ - запрещает попадание страницы в bfcache
  • пустая ячейка - влияние неизвестно
API Firefox Safari Chromium IE
Подписка на beforeunload
Подписка на unload
Незавершённые запросы XHR/fetch ✘ в планах прерывать запрос и вызывать onerror при восстановлении страницы
Незавершённые запросы за ресурсами ✘ кроме favicon
@guyjin
guyjin / JS-One-Liners
Last active May 6, 2024 11:18
JS One-liner collection
just a collection of js one-liners from around the web.
@rxaviers
rxaviers / gist:7360908
Last active May 6, 2024 11:18
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@wsh32
wsh32 / boards.txt
Created September 20, 2017 18:32
Arduino Board Tag reference for arduino-mk
uno.name=Arduino Uno
atmega328.name=Arduino Duemilanove w/ ATmega328
diecimila.name=Arduino Diecimila or Duemilanove w/ ATmega168
nano328.name=Arduino Nano w/ ATmega328
nano.name=Arduino Nano w/ ATmega168
mega2560.name=Arduino Mega 2560 or Mega ADK
mega.name=Arduino Mega (ATmega1280)
leonardo.name=Arduino Leonardo
esplora.name=Arduino Esplora
micro.name=Arduino Micro
@itslukej
itslukej / tunneling.md
Created September 16, 2023 01:12
Tunneling a whole process through wireguard

Tunneling a whole process through wireguard

Certain company blocking a certain hosting provider? No problem, just tunnel the process through a small VPS with wireguard.

Consider server A your blocked server and server B your VPS.

Step 1: Generate a keypair on server A and server B

Server A:

@bashenk
bashenk / AndroidDeviceEnrollmentQRCreation.md
Last active May 6, 2024 11:16
Creating a QR Code for Android Device Enrollment

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write