- Select the object(s) to export
- Open the document properties window (Ctrl+Shift+D)
- Select "Resize page to drawing or selection"
- File > Save As Copy...
- Select Optimized SVG as the format if you want to use it on the web
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Vue = require('../../node_modules/vue/dist/vue.common.js'); | |
const App = new Vue({ | |
delimiters: ['${', '}'], | |
el: '#app', | |
data: { | |
message: 'Default message', |
convert $(ls *.png | sort -r) +append res/result-sprite-vertical.png
convert $(ls *.png) -append res/result-sprite-horizontal.png
convert *png *gif -append PNG8:res/result-sprite-horizon.png
imagemagick Montage #
montage *.png -background transparent -geometry +4+4 res/sprite.png
montage $(ls *.png -t) -mode Concatenate -tile 2x16+1+1 -border 2 res/sprite.png
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const input = `4 | |
// 1 4 3 2` | |
// input.split('\n')[1].split(' ').reverse().join(' ') | |
// Sample Input | |
// const input = `1 1 1 0 0 0 | |
// 0 1 0 0 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xterm*background: grey9 | |
xterm*foreground: white | |
xterm*cursorColor: red | |
xterm*cursorUnderline: true | |
xterm*cursorBlink: true | |
xterm*saveLines: 100 | |
! -- Allow utf8 in/out | |
xterm*utf8: 2 | |
xterm*eightBitInput: true | |
xtere*eightBitControl: false |
In html/about/index.html
:
{% extends "layouts/layout.njk" %}
{% set base_path = "../../" %}
{% set page_title = "about" %}
In data.json
:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Template literals for-loop example | |
Using `Array(5).join(0).split(0)`, we create an empty array | |
with 5 items which we can iterate through using `.map()` | |
*/ | |
var element = document.createElement('div') | |
element.innerHTML = ` | |
<h1>This element is looping</h1> | |
${Array(5).join(0).split(0).map((item, i) => ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Android SDK setup | |
## Install Java | |
```bash | |
sudo apt-get update | |
sudo dpkg --add-architecture i386 | |
sudo apt-get install libbz2-1.0:i386 | |
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 | |
sudo apt-get install openjdk-8-jdk openjdk-8-jre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta property="og:title" content="The Attorney" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:url" content="http://ivankalachikov.esy.es/ahblaw/attorney.html" /> | |
<meta property="og:description" | |
content="Sharis is a native Texan who was born in Houston and has committed herself to helping other Texans in need. Sharis attended Baylor University and obtained both her undergraduate and law degree in Waco and moved to Dallas to begin her law practice." /> | |
<meta property="og:image" content="http://ivankalachikov.esy.es/ahblaw/images/5.jpg" /> | |
<meta property="og:image:width" content="323" /> | |
<meta property="og:image:height" content="492" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Convert ssh-agent output to fish shell | |
# | |
eval "$(ssh-agent)" >/dev/null | |
echo "set SSH_AUTH_SOCK \"$SSH_AUTH_SOCK\"; export SSH_AUTH_SOCK" | |
echo "set SSH_AGENT_PID \"$SSH_AGENT_PID\"; export SSH_AGENT_PID" |