Showing latest added snippets.

Add edit customer - Snippet icon Add edit customer
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml"
  5. xmlns:h="http://xmlns.jcp.org/jsf/html"
  6. xmlns:f="http://xmlns.jcp.org/jsf/core"
  7. xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
  8. xmlns:p="http://primefaces.org/ui">
  9.  
  10. <h
See the complete snippet
Language: JSF
Tags:
Submitted By: dmitriy.laletin
Untitled Snippet - Snippet icon Untitled Snippet
  1. http://chart.apis.google.com/chart?cht=qr&chs=500x500&choe=UTF-8&chld=H|0&chl=https://goo.gl/GbVQu8
See the complete snippet
Language: Other
Tags:
Submitted By: PiarasJ
??????? ?????? ????? - Snippet icon ??????? ?????? ?????
  1. public static void main(String[] args) throws IOException
  2. {
  3. //?????? ?????? ? ??????
  4. StringBuilder sb = new StringBuilder();
  5. sb.append("Lena").append('\n');
  6. sb.append("Olya").append('\n');
  7. sb.append("Anya").append('\n');
  8. String data = sb.toString();
  9.  
  10. //??????????? ?????? ? ????? ByteArrayInputStream
  11. InputStream is = new ByteArrayInputStream(data.getBytes());
  12.  
  13. //????????? in
  14. System.setIn(
See the complete snippet
Language: JSF
Tags:
Submitted By: dmitriy.laletin
????? ??????? - Snippet icon ????? ???????
  1. public static void main(String[] args) throws IOException
  2. {
  3. //?????? ?????? ? ??????
  4. StringBuilder sb = new StringBuilder();
  5. sb.append("Lena").append('\n');
  6. sb.append("Olya").append('\n');
  7. sb.append("Anya").append('\n');
  8. String data = sb.toString();
  9.  
  10. //??????????? ?????? ? ????? ByteArrayInputStream
  11. InputStream is = new ByteArrayInputStream(data.getBytes());
  12.  
  13. //????????? in
  14. System.setIn(
See the complete snippet
Language: JSF
Tags:
Submitted By: dmitriy.laletin
C?????? ????????? ??? ???????? -????????? - Snippet icon C?????? ????????? ??? ???????? -?????????
  1. <div class="item">
  2. <p:outputLabel for="dateIssue" value="#{msgs['customerForm.dateOfIssue']}"/>
  3. <p:calendar id="dateIssue" value="#{customerBean.customer.dateOfIssue}"
  4. placeholder="MM/dd/yyyy"
  5. showOn="button" navigator="true"
  6.  
See the complete snippet
Language: JSF
Tags:
Submitted By: dmitriy.laletin
C?????? ????????? ????????? ??? ???????? - ????? ???? - Snippet icon C?????? ????????? ????????? ??? ???????? - ????? ????
  1. <div class="item">
  2. <p:outputLabel for="gender" value="#{msgs['customerForm.gender']}"/>
  3. <p:selectOneMenu id="gender" value="#{customerBean.customer.gender}"
  4. required="true" requiredMessage="#{msgs['Error.gender.mandatory']}"
  5.  
See the complete snippet
Language: JSF
Tags:
Submitted By: dmitriy.laletin
??????? ????????? ????????? ??? ???????? ???? - Snippet icon ??????? ????????? ????????? ??? ???????? ????
  1. <div class="item">
  2. <p:outputLabel for="firstName" value="#{msgs['customerForm.firstName']}"/>
  3. <p:inputText id="firstName" value="#{customerBean.customer.firstName}"
  4. requiredMessage="#{msgs['Error.firstName.mandatory']}"
  5. validator
See the complete snippet
Language: JSF
Tags:
Submitted By: dmitriy.laletin
??????????? ????? - Snippet icon ??????????? ?????
  1. public static void main(String[] args) throws Exception
  2. {
  3. //??????? ?????-??????-????-??-?????
  4. FileInputStream inputStream = new FileInputStream("c:/data.txt");
  5. // ??????? ?????-??????-????-?-????
  6. FileOutputStream outputStream = new FileOutputStream("c:/result.txt");
  7.  
  8. byte[] buffer = new byte[1000];
  9. while (inputStream.available() > 0) //???? ???? ??? ????????????? ?????
  10. {
  11. // ????????? ??
See the complete snippet
Language: Java
Tags:
Submitted By: dmitriy.laletin
?????? ? ?????? ????? - Snippet icon ?????? ? ?????? ?????
  1. public static void main(String[] args) throws Exception
  2. {
  3. //??????? ?????-??????-????-??-?????
  4. FileInputStream inputStream = new FileInputStream("c:/data.txt");
  5. // ??????? ?????-??????-????-?-????
  6. FileOutputStream outputStream = new FileOutputStream("c:/result.txt");
  7.  
  8. while (inputStream.available() > 0) //???? ???? ??? ????????????? ?????
  9. {
  10. int data = inputStream.read(); // ????????? ?????
See the complete snippet
Language: Java
Tags:
Submitted By: dmitriy.laletin
Java Starter - Snippet icon Java Starter
  1. class HelloWorld {
  2. public static void main(String args[]) {
  3. System.out.print("Hello World");
  4. }
  5. }
See the complete snippet
Language: Java
Tags:
Submitted By: Lippoli
Objective-C Starter - Snippet icon Objective-C Starter
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main (int argc, const char * argv[]) {
  4. NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  5.  
  6. NSLog(@"Hello World");
  7. [pool release];
  8. return 0;
  9. }
See the complete snippet
Language: Objective-C
Tags:
Submitted By: Lippoli
PHP Starter - Snippet icon PHP Starter
  1. <?php
  2. print "Hello World";
  3. ?>
See the complete snippet
Language: PHP
Tags:
Submitted By: Lippoli
C Starter - Snippet icon C Starter
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. printf("Hello World");
  5. return 0;
  6. }
See the complete snippet
Language: C
Tags:
Submitted By: Lippoli
Language: Other
Tags:
Submitted By: oopfuture
Language: Objective-C
Tags:
Submitted By: mikruli
Adding Bundles - Snippet icon Adding Bundles
  1. Code Collector Pro allows you to add bundles to expand the list of languages available allowing them to have their syntax coloured. Code Collector Pro supports TextMate bundles, which are available from the online bundle respository (http://macromates.com/svn/Bundles/trunk/). Once you have downloaded a bundle you can add it by going into Preferences and clicking on the + button in the bundles sect
See the complete snippet
Language: Other
Tags:
Submitted By: mikruli
HTML 4.01 Transitional - Snippet icon HTML 4.01 Transitional
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html lang="en">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>untitled</title>
  6. </head>
  7.  
  8. </body>
  9. </html>
See the complete snippet
Language: HTML
Tags:
Submitted By: mikruli
Java Starter - Snippet icon Java Starter
  1. class HelloWorld {
  2. public static void main(String args[]) {
  3. System.out.print("Hello World");
  4. }
  5. }
See the complete snippet
Language: Java
Tags:
Submitted By: mikruli
Objective-C Starter - Snippet icon Objective-C Starter
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main (int argc, const char * argv[]) {
  4. NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  5.  
  6. NSLog(@"Hello World");
  7. [pool release];
  8. return 0;
  9. }
See the complete snippet
Language: Objective-C
Tags:
Submitted By: mikruli
Code Collector Pro Header Image

Get Better Link Tester

Better Link Tester is the best way to check every page on your site to make sure that there are no broken links (404s), and to make sure that you site is up and running.

Find out more » Download Better Link Tester

Web Analytics