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
<html> | |
<head> | |
<script src="https://connect.facebook.net/en_US/sdk.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var PAGE_ID = 'page_id'; | |
var PAGE_ACCESS_TOKEN = 'access_tooken_to_page'; | |
window.fbAsyncInit = function() { | |
FB.init({ |
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
// script.js | |
(function(exports){ | |
// public function | |
// can be accessed outside of this file | |
exports.publicFunction = function(param1, param2){ | |
}; | |
// private function |
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
<build> | |
<plugins> | |
<plugin> | |
<!-- Build an executable JAR --> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>3.0.2</version> | |
<configuration> | |
<archive> | |
<manifest> |
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
String url = "http://my-site.com/text.txt"; | |
String fileName = "/path/to/file/to/save/text.txt"; | |
URL website = new URL(url); | |
ReadableByteChannel rbc = Channels.newChannel(website.openStream()); | |
FileOutputStream fos = new FileOutputStream(fileName); | |
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); | |
fos.close(); | |
rbc.close(); |
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
точно мережі | |
точно мені не вистачає адміністрування юнікс систем | |
дуже часто треба ПХП | |
лінійка JavaScript від сервера до клієнта | |
мені не вистачає реально Java EE | |
багатопоточність | |
робота з базами | |
XML + JSON | |
автоматичне і мануальне тестування | |
continuous integration |
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://en.wikipedia.org/wiki/JPEG_File_Interchange_Format | |
http://dev.exiv2.org/projects/exiv2/wiki/The_Metadata_in_JPEG_files | |
http://paulbourke.net/dataformats/bitmaps/ |
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
var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); | |
rect.setAttribute('x', x) | |
rect.setAttribute('y', y) | |
rect.setAttribute('width', width) | |
rect.setAttribute('height', height) | |
rect.setAttribute('fill', 'rgb(1, 100, 1)'); |
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
http://arduino-diy.com/arduino-oled-displey | |
oled -> leonardo | |
GND -> GND | |
VDD -> 3.3V | |
SCK -> D3 | |
SDA -> D2 | |
get i2c port | |
http://playground.arduino.cc/Main/I2cScanner |
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.7</source> | |
<target>1.7</target> | |
</configuration> |
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
var payload = new FormData(); | |
payload.append('file', $('#my_file_input')[0].files[0]); | |
payload.append('some_field', 'foo'); | |
var request = new XMLHttpRequest(); | |
request.open('PUT'|'POST', '/my/api/upload/url'); | |
request.setRequestHeader('Accept', 'application/json'); | |
request.onload = function () { | |
var response = request.response; |
OlderNewer