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
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2014 Ismael Celis | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
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
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
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
| package main | |
| import ( | |
| "fmt" | |
| "websocket" | |
| ) | |
| // const message = "A message" | |
| func main() { |
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
| update-rc.d logstash-shipper defaults | |
| update-rc.d logstash-reader defaults |
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 | |
| namespace Nrk\Monolog\Handler; | |
| use Predis\Client; | |
| use Monolog\Logger; | |
| use Monolog\Formatter\JsonFormatter; | |
| use Monolog\Handler\AbstractProcessingHandler; | |
| /** |
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"?> | |
| <project name="${projectName}" basedir="." default="build:main"> | |
| <!-- Properties --> | |
| <property name="dir.app" value="${project.basedir}/app" /> | |
| <property name="dir.src" value="${project.basedir}/src" /> | |
| <property name="dir.build" value="${project.basedir}/app/build" /> | |
| <property name="dir.docs" value="${dir.build}/docs" /> | |
| <property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" /> | |
| <property name="dir.docs.docblox" value="${dir.docs}/docblox" /> | |
| <property name="dir.reports" value="${dir.build}/logs" /> |
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> | |
| <body> | |
| <h1>Our Navigation</h1> | |
| <p>I'm writing an example xhtml document to get converted into markdown!</p> | |
| <h2>Examples</h2> | |
| <h3>Text formatting</h3> | |
| <p>Sometimes with longer <em>paragraphs</em><br/>we just want a new line <strong>immediately</strong>.</p> | |
| <div>Divs are block elements too, and people don't always put their text in p tags.</div> | |
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
| function verify_app_store_in_app($receipt, $is_sandbox) | |
| { | |
| //$sandbox should be TRUE if you want to test against itunes sandbox servers | |
| if ($is_sandbox) | |
| $verify_host = "ssl://sandbox.itunes.apple.com"; | |
| else | |
| $verify_host = "ssl://buy.itunes.apple.com"; | |
| $json='{"receipt-data" : "'.$receipt.'" }'; | |
| //opening socket to itunes |
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 | |
| class PageAdmin extends BaseAdmin | |
| { | |
| protected function configureFormFields(FormMapper $formMapper) | |
| { | |
| parent::configureFormFields($formMapper); | |
| $page = $formMapper->getAdmin()->getSubject(); | |
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
| /* | |
| * author Huber Flores | |
| */ | |
| # Install on each Node | |
| $ su | |
| # Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set. | |
| $ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl |
OlderNewer