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
<Particles | |
params={{ | |
"fps_limit": 28, | |
"particles": { | |
"collisions": { | |
"enable": false | |
}, | |
"number": { | |
"value": 200, | |
"density": { |
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
<Particles | |
params={{ | |
"fps_limit": 28, | |
"particles": { | |
"collisions": { | |
"enable": false | |
}, | |
"number": { | |
"value": 200, | |
"density": { |
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
const saveSnapshotToServer = async (snapshot) => { | |
// async code here. | |
// Send a snapshot to the server, store it locally somewhere, etc. | |
} | |
const overrideCallback = (Provider) => { | |
// Extend default behavior | |
class MyOverride extends Provider { | |
async getSnapshot() { | |
// Call super to access vanilla platform behavior |
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
import SpriteKit | |
import GameplayKit | |
class GameScene: SKScene { | |
var char:SKSpriteNode?; | |
required init?(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) | |
setup() |
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
class Item extends React.Component { | |
onClick() { | |
console.log(1); | |
} | |
render() { | |
return (<div onClick={this.onClick.bind(this)}></div>) | |
} | |
} |
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 webpack = require('webpack'); | |
var path = require('path'); | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
filename: 'bundle.js' | |
}, | |
module: { |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $nginx_prod = ' | |
upstream myapp { | |
server 127.0.0.1:8080; | |
} | |
server { |
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
#----------------------------------------------------------------------------------- | |
# Mojo installer + mgmt | |
# | |
# | |
CURL=sudo apt-get install curl | |
MOJO=sudo sh -c "curl -L cpanmin.us | perl - Mojolicious" | |
NGINX=sudo apt-get install nginx | |
OPENSSL=sudo apt-get install openssl | |
NGINX_PATH=/etc/nginx | |
INSTALL_PATH=$(shell pwd) |
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
slightly better loader Macdonald had a more quotes again, E-I-E-I-O | |
and on that updated routes to use transactions he had an und3f, E-I-E-I-O | |
with a added named url_for fixed relative path handling here | |
and a cleaned up timers added simpsons quote there, | |
here a fixed fork bug in Mojo::IOLoop, there a mention default connection timeout, | |
everywhere a added client offline tests added root method to Mojo::DOM, | |
fixed JavaScript/CSS bug in Mojo::DOM Macdonald had a added experimental sort method to Mojo::Collection, E-I-E-I-O. |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $nginx_prod = ' | |
upstream myapp { | |
server 127.0.0.1:8080; | |
} | |
server { |
NewerOlder