This file contains 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
#o{ | |
width: 200px; | |
height: 20px; | |
box-shadow: 0 0 1px gray; | |
} | |
#i{ | |
background: -webkit-repeating-linear-gradient(-45deg, rgba(157,213,58,1) 0,rgba(161,213,79,1) 15,rgba(128,194,23,1) 16,rgba(124,188,10,1) 30); | |
height: 20px; | |
} |
This file contains 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
<style> | |
.select-editable { position:relative; background-color:white; border:solid grey 1px; width:120px; height:18px; } | |
.select-editable select { position:absolute; top:0px; left:0px; font-size:14px; border:none; width:120px; margin:0; } | |
.select-editable input { position:absolute; top:0px; left:0px; width:100px; padding:1px; font-size:12px; border:none; } | |
.select-editable select:focus, .select-editable input:focus { outline:none; } | |
</style> | |
<div class="select-editable"> | |
<select tabindex="-1" onchange="this.nextElementSibling.value=this.value"> | |
<option value=""></option> |
This file contains 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
<select name="project" onchange="t=this;n=t.nextElementSibling;if(t.value=='new')if(confirm('Add new '+t.name+'?')){n.style.display='inline-block'; n.name=t.name; t.name=''; t.style.display='none'; n.focus()}"> | |
<option value="new"><new project></option> | |
<option selected>Project1</option> | |
<option>Project2</option> | |
<option>Project3</option> | |
</select> | |
<input style="display:none"> |
This file contains 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
<textarea style="display:block" cols=42 rows=10 onkeyup="t=this;t.nextElementSibling.value=t.value.replace(/</g,'&lt;').replace(/>/g,'&gt;')"></textarea> | |
<textarea readonly onclick="t=this;t.focus();t.select();"></textarea> |
This file contains 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
div:not(#container){ | |
background: rgb(127,125,224); | |
text-align: center; | |
width: 46px; | |
height: 46px; | |
margin: 2px; | |
font: 26px Helvetica;; | |
} | |
#container{ |
This file contains 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
.INCLUDE "m8def.inc" | |
;==================================================================== | |
; | |
; AVR assembly template | |
; | |
; Author: Muhannad Ajjan (contact@isword.me) | |
; Created: Tue Dec 8 2015 | |
; Processor: ATmega8 | |
; Frequency: 1 MHz |
This file contains 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
# https://youtu.be/RTSGm-a0h1Q | |
from gi.repository import Gtk, Gdk | |
from scipy import misc | |
import serial | |
FILENAME = '/home/isword/Pictures/jb.jpg' | |
DEVICE = '/dev/ttyACM0' | |
BAUDRATE = 115200 |
This file contains 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
#!/usr/bin/python2 | |
import sys, fontforge, string | |
allowed_chars = string.printable # ascii (32 -> 126) | |
if len(sys.argv) == 3: | |
font = fontforge.open(sys.argv[1]) | |
for char in allowed_chars.decode("UTF-8"): | |
font.selection[ord(char)] = True |
This file contains 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
// Functions | |
let shuffle = (inArr, seed, unshuffle = false) => { | |
let outArr = Array.from(inArr), | |
len = inArr.length | |
let swap = (a, b) => [outArr[a], outArr[b]] = [outArr[b], outArr[a]] | |
for ( |
This file contains 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
echo 'address=/localhost/127.0.0.1' | sudo tee /etc/NetworkManager/dnsmasq.d/development-tlds > /dev/null | |
echo 'address=/laravel/127.0.0.1' | sudo tee -a /etc/NetworkManager/dnsmasq.d/development-tlds > /dev/null | |
sudo service NetworkManager reload |
OlderNewer