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" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>com.apple.security.app-sandbox</key> | |
| <true/> | |
| <key>com.apple.security.network.client</key> | |
| <true/> | |
| <key>com.apple.security.files.user-selected.read-write</key> | |
| <true/> |
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
| check host elasticsearch_connection with address 127.0.0.1 | |
| start program = "/usr/bin/env service elasticsearch start" | |
| stop program = "/usr/bin/env service elasticsearch stop" | |
| if failed url http://127.0.0.1:9200/ with timeout 15 seconds then restart | |
| group elasticsearch |
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
| rowView.setOnTouchListener(new View.OnTouchListener() { | |
| @Override | |
| public boolean onTouch(View v, MotionEvent event) { | |
| final float density = context.getResources().getDisplayMetrics().density; | |
| int initialX = 0; | |
| switch (event.getAction()) { | |
| case MotionEvent.ACTION_MOVE: { | |
| int currentX = (int) event.getX(); | |
| final int offset = currentX - initialX; | |
| if (Math.abs(offset) > 128) { |
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
| Привет! | |
| Если ты используешь haml, то вот какой код для подключения: | |
| // MS Surface, IE 11 | |
| %meta{name:'msapplication-TileColor',content:'#00afff'} # цвет подложки сайта | |
| %meta{name:'msapplication-square150x150logo', content: '/icons_150.png'} | |
| // iOS icons | |
| %link{href:'/icon_16.png', rel: 'icon', type: 'image/png'} | |
| %link{href:'/icon_32.png', rel: 'icon', type: 'image/png', sizes: '32x32'} | |
| %link{href:'/apple-touch-icon.png', rel: 'apple-touch-icon'} | |
| %link{href:'/apple-touch-icon-76x76.png', rel: 'apple-touch-icon', sizes: '76x76'} |
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
| Initial: | |
| @font-face { | |
| font-family: 'MyFont'; | |
| src: url('fonts/myfont.eot'); | |
| src: url('fonts/myfont.eot?#iefix') format('embedded-opentype'), | |
| url('fonts/myfont.woff') format('woff'), | |
| url('fonts/myfont.ttf') format('truetype'), | |
| url('fonts/myfont.svg#myfont') format('svg'); | |
| font-weight: normal; | |
| font-style: normal; |
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
| module OpenGraph | |
| # Rails implementation of OpenGraph generator | |
| # Author: sharpfuryz@gmail.com | |
| # Based on http://ogp.me and http://developers.facebook.com | |
| class << self | |
| # Magic | |
| def parse_options(options) | |
| output = '' | |
| options.each_key do |key| | |
| output += ActionView::Helpers::TagHelper.tag(:meta, {:property => "og:#{key}", :content => options[key]}) |
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
| $.ajax({ | |
| url: 'http://structor.io/api/v1/users/sign_in', | |
| type: "POST", | |
| data: { | |
| 'user[email]': 'login', | |
| 'user[password]': 'password' | |
| } | |
| }) |
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
| <link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-114-precomposed.png" /> | |
| <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114-precomposed.png" /> | |
| <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-144-precomposed.png " /> | |
| <link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144-precomposed.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
| # This number should be, at maximum, the number of CPU cores on your system. | |
| worker_processes 8; | |
| # Number of file descriptors used for Nginx. | |
| worker_rlimit_nofile 200000; | |
| # Only log critical errors. | |
| error_log /var/log/nginx/error.log crit | |
| events { | |
| # Determines how many clients will be served by each worker process. | |
| worker_connections 4000; |
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
| [furyz@one ~]$ cat /etc/init.d/httpd | |
| #!/bin/bash | |
| # | |
| # httpd Startup script for the Apache HTTP Server | |
| # | |
| # chkconfig: - 85 15 | |
| # description: The Apache HTTP Server is an efficient and extensible \ | |
| # server implementing the current HTTP standards. | |
| # processname: httpd | |
| # config: /etc/httpd/conf/httpd.conf |
NewerOlder