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
//receiver | |
CREATE TABLE `sync` ( | |
`name` varchar(100) NOT NULL, | |
`id` int(11) NOT NULL, | |
`address` varchar(100) NOT NULL, | |
`phone` varchar(100) NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
.biscuit { | |
display: inline-block; | |
min-width: 20px; | |
vertical-align: baseline; | |
margin-left: 10px; | |
border-radius: 2px; |
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
sudo adduser $USER www-data | |
sudo chown -R www-data:www-data /var/www | |
sudo chmod -R g+rwX /var/www | |
sudo chgrp www-data /var/www | |
#logout and login |
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
<html> | |
<head> | |
<script> | |
$( document ).ready(function() { | |
$('#scrolltotop').fadeOut(); | |
$('#scrolltotop').on("click", function () { | |
var percentageToScroll = 100; | |
var percentage = percentageToScroll / 100; | |
var height = $(document).scrollTop(); | |
var scrollAmount = height * (1 - percentage); |
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
in Tools/New Plugin...:>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
import sublime, sublime_plugin | |
class IncrementSelectionCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
start_value = int(self.view.substr(self.view.sel()[0])) | |
counter = 0 | |
for selection in self.view.sel(): | |
self.view.insert(edit, selection.begin(), str(start_value + counter)) |
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
echo'<table>'; | |
foreach ($_POST as $key => $value) { | |
echo "<tr>"; | |
echo "<td>"; | |
echo $key; | |
echo "</td>"; | |
echo "<td>"; | |
echo $value; | |
echo "</td>"; |
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
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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
<?php | |
//http://codepen.io/noeldelgado/pen/NPGmRO | |
//http://codepen.io/mr_alien/pen/FDLjg | |
//http://codepen.io/simeydotme/pen/jgcvi | |
//http://codepen.io/notduncansmith/pen/ogbwEv | |
//http://codepen.io/kowlor/pen/ZYYQoy | |
//http://codepen.io/aurer/pen/jEGbA | |
//http://codepen.io/lukerichardville/pen/NGPMMJ | |
//http://codepen.io/isuttell/pen/OPVELL |
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
<html> | |
<head><title>Canvas Halftoning</title></head> | |
<body> | |
<canvas id="c"></canvas> | |
<img id="s" src="./pomeranian.jpg" /> | |
</body> | |
<script type="text/javascript"> | |
var interval = 8; | |
var angles = { y: 108, m: 162, c: 90, k: 45 }; |
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
<?xml version="1.0" ?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>ISPnub - Stand-alone AVR In-System-Programmer Module - fischl.de</title> | |
<style type="text/css"> | |
body { | |
font-family:Liberation Sans,Arial,Helvetica,sans-serif; | |
color: #484848; |