Skip to content

Instantly share code, notes, and snippets.

<Particles
params={{
"fps_limit": 28,
"particles": {
"collisions": {
"enable": false
},
"number": {
"value": 200,
"density": {
<Particles
params={{
"fps_limit": 28,
"particles": {
"collisions": {
"enable": false
},
"number": {
"value": 200,
"density": {
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
import SpriteKit
import GameplayKit
class GameScene: SKScene {
var char:SKSpriteNode?;
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
setup()
class Item extends React.Component {
onClick() {
console.log(1);
}
render() {
return (<div onClick={this.onClick.bind(this)}></div>)
}
}
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
#!/usr/bin/perl
use strict;
use warnings;
my $nginx_prod = '
upstream myapp {
server 127.0.0.1:8080;
}
server {
#-----------------------------------------------------------------------------------
# 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)
@gtsafas
gtsafas / gist:1281945
Created October 12, 2011 17:42
gitlibs
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.
#!/usr/bin/perl
use strict;
use warnings;
my $nginx_prod = '
upstream myapp {
server 127.0.0.1:8080;
}
server {