Skip to content

Instantly share code, notes, and snippets.

View s10wen's full-sized avatar
💭
🦄

Simon Owen s10wen

💭
🦄
View GitHub Profile
@s10wen
s10wen / batman.js
Created June 19, 2019 14:53
Local Storage - Dark Theme Site Switcher
// Set up the batman stylesheet link
const link = document.createElement('link');
link.href = '/css/batman.css';
link.rel = 'stylesheet';
const batmanHead = () => document.head.appendChild(link);
const batmanHeadRemove = () => document.head.removeChild(link);
const batmanLog = () => console.log(Array(16).join('hero'-1)+'Batman');
// If the theme is true, activate theme
@s10wen
s10wen / .mxml
Created April 2, 2019 12:13
.mxml example, required as SVG
<s:Rect width="100%" height="100%" id="box" >
<s:fill >
<s:SolidColor alpha="0" />
</s:fill>
</s:Rect>
<s:Group includeIn="disabled">
<s:Group >
0001 0000 000a 0080 0003 0020 4f53 2f32
0356 06fd 0000 0e40 0000 0060 636d 6170
9111 37d9 0000 00ac 0000 043c 676c 7966
8169 5af1 0000 0ec0 0000 3d10 6865 6164
5f10 ff90 0000 04e8 0000 0036 6868 6561
0400 fe7c 0000 0520 0000 0024 686d 7478
5980 0224 0000 0544 0000 0244 6c6f 6361
0000 df4f 0000 4bd0 0000 0248 6d61 7870
ff92 00a2 0000 0788 0000 0020 6e61 6d65
0daf fa1d 0000 07a8 0000 0696 706f 7374
01110010 01100001 01100100 01101001 01101111 01101000 01100101 01100001 01100100
114 097 100 105 111 104 101 097 100
cmFkaW9oZWFk
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(![]+[])[+!+[]]+([][[]]+[])[!+[]+!+[]]+([![]]+
@s10wen
s10wen / sass-nesting.md
Last active September 22, 2016 15:51
Sass Nesting using &
  1. Nesting:
.anElement {

  &_aBlock {
    …
  }

  &_anotherBlock {
 …
@s10wen
s10wen / Monokai-Phoenix.tmTheme
Last active October 15, 2018 10:11
Monokai-Phoenix.tmTheme
Moved to:
https://github.com/s10wen/dotfiles/blob/master/init/Monokai-Phoenix.tmTheme
```
$ defaults write com.bohemiancoding.sketch3 exportCompactSVG -bool yes
$ defaults write com.bohemiancoding.sketch3 svgExportSkipAssignIdToLayerName -bool yes
```
.test {
padding: 0;
margin: 0;
border: 10px solid red;
}
Spaceport - http://spaceportx.com
Escalator - http://theescalator.com
Hello Hub - http://hellowork.co.uk
The Assembly - http://assemblymcr.com
MadLab - http://madlab.org.uk
Metro Desk - http://metrodesk.com
Work Space - http://work-space.co.uk