Skip to content

Instantly share code, notes, and snippets.

Lars Nyström larsnystrom

  • Lund
Block or report user

Report or block larsnystrom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@larsnystrom
larsnystrom / getSelection.js
Created Jul 9, 2019
JS to get selected text as well as text before and after.
View getSelection.js
// Also see fiddle at:
//
function getUnselectedText(containerEl) {
var sel,
range,
tempRange,
before = "",
after = "",
selected = "";
View keybase.md

Keybase proof

I hereby claim:

  • I am larsnystrom on github.
  • I am larsnystrom (https://keybase.io/larsnystrom) on keybase.
  • I have a public key ASDHwmop9vExwObpKe25aDCfxzfzYzAVxVS13W030TaB5Ao

To claim this, I am signing this object:

@larsnystrom
larsnystrom / Start Hotspot.desktop
Created Jan 10, 2014
Desktop entry files for starting and stopping ap-hotspot, a script for setting upp wireless hotspots in Access Point Mode. Information about ap-hotspot can be found on http://www.webupd8.org/2013/06/how-to-set-up-wireless-hotspot-access.html Save these two files to your desktop and make them executable. If you'd like to run them from the dash yo…
View Start Hotspot.desktop
[Desktop Entry]
Name=Start Hotspot
Comment=Start a wireless hotspot in Access Point Mode
Exec=gksudo /usr/bin/ap-hotspot start
Icon=/usr/share/icons/gnome/48x48/devices/network-wireless.png
Terminal=false
Type=Application
Categories=Network;
You can’t perform that action at this time.