I hereby claim:
- I am lindskogen on github.
- I am jlindsk (https://keybase.io/jlindsk) on keybase.
- I have a public key whose fingerprint is F9FB 80B7 28C7 C523 F818 5DB4 4322 9229 4C53 7B06
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
document.cookie = "ActiveCity__www.sf.se__sv=Z2JfX19nJWMzJWI2dGVib3Jn; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/" |
# Using curl: | |
curl 'https://login.nomad.chalmers.se' --data 'action=Login&login=$USERNAME/net&password=$PASSWORD&org=Radius' | |
# Using wget: (on Ubuntu for example) | |
wget 'https://login.nomad.chalmers.se' --post-data 'action=Login&login=$USERNAME/net&password=$PASSWORD&org=Radius' |
# Drop this into config/initializers to print line number of each query called by ActiveRecord | |
module LogQuerySource | |
def debug(*args, &block) | |
return unless super | |
backtrace = Rails.backtrace_cleaner.clean caller | |
relevant_caller_line = backtrace.detect do |caller_line| | |
!caller_line.include?('/initializers/') |
<html> | |
<head> | |
<title>Swish redirect</title> | |
<script> | |
var search = window.location.search; | |
var params = search.substr(1).split('&').map(function(arg){ | |
return arg.split('=', 2); | |
}).reduce(function(acc, items) { | |
acc[items[0]] = decodeURIComponent(items[1]); | |
return acc; |
// @flow | |
import { RawDraftContentState } from 'draft-js' | |
type Mention = { | |
link: string, | |
name: string, | |
fullName: ?string, | |
id: number, | |
avatar: string | |
} |
import React, { PureComponent } from 'react'; | |
import cx from 'classnames'; | |
import './checkbox.styl'; | |
const SPACE_KEY = 32; | |
const filterSpacePressed = (event, callback) => { | |
if (event.which === SPACE_KEY) { | |
event.preventDefault(); |
# Standard imports | |
import cv2 | |
import numpy as np | |
# Read image | |
img = cv2.imread("IMG_20170624_152655.jpg", 0) | |
img = cv2.medianBlur(img, 5) | |
cimg = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) | |
# Set up the detector with default parameters. |
#!/bin/bash | |
## Try to use following solution. | |
## ------------------------------------ | |
USER=$(whoami) | |
cd /Users/$USER/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/public; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done | |
cd /Users/$USER/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/steam/cached/; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done | |
cd /Users/$USER/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/friends; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done | |
cd /Users/$USER/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/graphics; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done | |
cd /Users/$USER/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/servers; ls *.res | while read l |
import SwiftUI | |
import UIKit | |
struct ActivityIndicator : UIViewRepresentable { | |
var animating: Bool | |
var hidesWhenStopped = true | |
var style: UIActivityIndicatorView.Style = UIActivityIndicatorView.Style.medium | |
func makeUIView(context: Context) -> UIActivityIndicatorView { | |
let control = UIActivityIndicatorView() |