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
| var Table = React.createClass({ | |
| render: function render() { | |
| var _self = this; | |
| var thead = React.DOM.thead({}, | |
| React.DOM.tr({}, | |
| this.props.cols.map(function (col) { | |
| return React.DOM.th({}, col); | |
| }))); |
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
| server { | |
| client_body_in_file_only clean; | |
| client_body_buffer_size 32K; | |
| client_max_body_size 300M; | |
| sendfile on; | |
| send_timeout 300s; | |
| # Port that the web server will listen on. | |
| #listen 80; |
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
| after "deploy:updating", "deploy:phinx_migrations" | |
| namespace :deploy do | |
| task :restart do ; end | |
| desc 'Run Phinx migrations' | |
| task :phinx_migrations do | |
| on roles(:app) do | |
| within release_path do | |
| execute 'php', 'vendor/robmorgan/phinx/bin/phinx', 'migrate', '-e', 'production', raise_on_non_zero_exit: false |
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
| var io = require('socket.io-client'); | |
| var i, clients = 0, sent = 0, received = 0; | |
| var TOTAL_CLIENTS = process.argv[2] || 500; | |
| var CLIENTS_PER_ROOM = process.argv[3] || 3; | |
| console.log("Total clients: " + TOTAL_CLIENTS); | |
| console.log("Clients per room: " + CLIENTS_PER_ROOM); |
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 App\Http; | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
| */ |
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
| $(document).on('pjax:send', function() { | |
| Pace.restart(); | |
| }) | |
| $(document).on('pjax:complete', function() { | |
| Pace.stop(); | |
| }) |
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
| /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ | |
| import React from 'react'; | |
| import Router from 'react-routing/src/Router'; | |
| import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; | |
| import http from './core/HttpClient'; | |
| import App from './components/App'; | |
| import IndexPage from './components/IndexPage'; | |
| import NotFoundPage from './components/NotFoundPage'; |
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
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| listen 443 ssl; | |
| root /var/www/lumen/public; | |
| index index.php index.html index.htm; | |
| server_name server_domain_or_IP; |
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
| // sending to sender-client only | |
| socket.emit('message', "this is a test"); | |
| // sending to all clients, include sender | |
| io.emit('message', "this is a test"); | |
| // sending to all clients except sender | |
| socket.broadcast.emit('message', "this is a test"); | |
| // sending to all clients in 'game' room(channel) except sender |
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
| # | |
| # Himawari-8 Downloader | |
| # | |
| # | |
| # | |
| # This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image, | |
| # converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background. | |
| # | |
| # http://himawari8.nict.go.jp/himawari8-image.htm | |
| # |