Skip to content

Instantly share code, notes, and snippets.

View dmitryshelomanov's full-sized avatar
🎯
Focusing

Shelomanov Dmitry dmitryshelomanov

🎯
Focusing
View GitHub Profile
cargo-x86_64-unknown-linux-gnu (default)
rls-preview-x86_64-unknown-linux-gnu
rust-analysis-x86_64-unknown-linux-gnu
rust-docs-x86_64-unknown-linux-gnu (default)
rust-src
rust-std-aarch64-apple-ios
rust-std-aarch64-linux-android
rust-std-aarch64-unknown-fuchsia
rust-std-aarch64-unknown-linux-gnu
rust-std-aarch64-unknown-linux-musl
import React, { PureComponent } from 'react'
import { connect } from 'react-redux'
import styled from 'styled-components'
import PropTypes from 'prop-types'
import {
setGifData,
unsetData,
updateGifData,
} from '../redux/actions/gif'
import { api } from '../helpers/api'
use std::f32::consts;
struct Area {
x: i32,
y: i32,
r: f32,
}
impl Area {
fn new(x: i32, y: i32, r: f32) -> Area {
struct Circle {
x: f64,
y: f64,
radius: f64,
}
impl Circle {
fn area(&self) -> f64 {
std::f64::consts::PI * (self.radius * self.radius)
}
const socket = new net.Socket
function create() {
vm.run(code)
socket.abort()
}
socket.on('data', () => {
create() // x 3 and 1st hung up. what to do ?
})
const net = require('net')
const server = new net.Server()
server.on('connection', (socket) => {
socket.on('data', (data) => {
if (data.channel === 'sandbox:create:user_id ?') {
try {
create(socket, data)
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="ad.size" content="width=240,height=400">
<title>240x400v3</title>
<script src="libs/easeljs-0.8.1.min.js"></script>
<script src="libs/tweenjs-0.6.1.min.js"></script>
<!DOCTYPE html>
<!--
NOTES:
1. All tokens are represented by '$' sign in the template.
2. You can write your code only wherever mentioned.
3. All occurrences of existing tokens will be replaced by their appropriate values.
4. Blank lines will be removed automatically.
5. Remove unnecessary comments before creating your template.
-->
<html>
<!DOCTYPE html>
<!--
NOTES:
1. All tokens are represented by '$' sign in the template.
2. You can write your code only wherever mentioned.
3. All occurrences of existing tokens will be replaced by their appropriate values.
4. Blank lines will be removed automatically.
5. Remove unnecessary comments before creating your template.
-->
<html>
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { ToastContainer, toast } from 'react-toastify'
import { getStub } from '../../redux/stub/selectors'
import { getFirmware } from '../../redux/firmware/selectors'
import { getState } from '../../redux/tree-folder/selectors'
import { getStateBorder } from '../../redux/banner/selectors'
import { getStateFetch } from '../../redux/stopped-banner/selectors'