Skip to content

Instantly share code, notes, and snippets.

Avatar

Oscar Björkman oscarb

View GitHub Profile
View testing.md
  1. Do stuff

  2. Do stuff with code

     sudo do more stuff
    
    1. Do stuff with the stuff
  3. Go back to doing the first stuff

@oscarb
oscarb / table.md
Last active Nov 8, 2016
Free webprototyping tools with building blocks and mobile interface
View table.md

Prototyping tools

Requirements

  • Web
  • Free
  • Building tools/blocks
  • View on mobile

Table

@oscarb
oscarb / keybase.md
Created Oct 17, 2016
Proving GitHub identity
View keybase.md

Keybase proof

I hereby claim:

  • I am oscarb on github.
  • I am oscarb (https://keybase.io/oscarb) on keybase.
  • I have a public key whose fingerprint is CC21 B826 1C12 C9F6 D7E6 A107 1741 150B 1F6E DED3

To claim this, I am signing this object:

@oscarb
oscarb / activity.java
Created Oct 4, 2016
Log Android activity cycle
View activity.java
public void onStart()
{
super.onStart();
Log.d(TAG, "In the onStart() event");
}
public void onRestart()
{
super.onRestart();
Log.d(TAG, "In the onRestart() event");
@oscarb
oscarb / 7-zip-default-extract.reg
Created Sep 28, 2016 — forked from zabbarob/7-zip-default-extract.reg
Make 7-Zip extract to folder when double-clicking archives. (based on http://superuser.com/a/447791)
View 7-zip-default-extract.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\7-Zip.001\shell]
@="extract"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract]
@="Extract to Folder"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract\command]
@="\"C:\\Program Files\\7-Zip\\7zG.exe\" x \"%1\" -o*"
[HKEY_CLASSES_ROOT\7-Zip.7z\shell]
@oscarb
oscarb / workflowy-yellow-star.css
Last active Apr 14, 2016
Turn the star yellow when clicked on WorkFlowy, https://workflowy.com/ Use with Stylish or another extension modifying websites CSS.
View workflowy-yellow-star.css
.pageStar.starred {
background-image: url(/media/i/star-icon-empty.svg);
background-color: yellow;
-webkit-mask-image: url(/media/i/star-icon-grey.svg);
-webkit-mask-size: 20px;
}
@oscarb
oscarb / README.md
Last active Nov 8, 2018
Formula to check if URL in cell A1 in a Google Spreadsheet is valid HTML, using the W3C HTML Checker API
View README.md

Validate URL in a Google Spreadsheet

Formula to check if URL in cell A1 in a Google Spreadsheet is valid HTML, using the W3C HTML Checker API

Formula

=IF(A1<>"", IF(INDEX(IMPORTDATA("https://validator.w3.org/nu/?out=json&doc=" & A1), 0, 2) = "messages:[]}", "✓", "✗"), "") 

Output

You can’t perform that action at this time.