Skip to content

Instantly share code, notes, and snippets.

@andrew-raphael-lukasik
andrew-raphael-lukasik / BFN.cs
Created Apr 20, 2021
Structure to help store and represent very big numbers in Unity
View BFN.cs
using System;
using System.Runtime.CompilerServices;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions;
#if UNITY_EDITOR
using UnityEditor;
#endif
@29akshay
29akshay / list assignment python.ipynb
Created Apr 20, 2021
jupiter_study/python notebooks/Untitled2.ipynb
View list assignment python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hreidar
hreidar / ingress1.toml
Created Apr 20, 2021
Vector trace log for ingest stack
View ingress1.toml
ingress1_1 | Apr 19 14:13:00.007 TRACE sink{component_kind="sink" component_name=ingress1_to_dedup component_type=http}: vector::sinks::util::sink: Service ready; Sending batch.
ingress1_1 | Apr 19 14:13:00.007 TRACE sink{component_kind="sink" component_name=ingress1_to_dedup component_type=http}: vector::sinks::util::sink: Submitting service request. in_flight_requests=1
ingress1_1 | Apr 19 14:13:00.009 DEBUG http: vector::internal_events::http_client: Sending HTTP request. uri=http://127.0.0.1:9001/ method=POST version=HTTP/1.1 headers={"content-type": "application/json", "user-agent": "Vector/0.12.2 (v0.12.2 x86_64-unknown-linux-gnu 2021-03-30)", "accept-encoding": "identity"} body=[4561 bytes]
ingress1_1 | Apr 19 14:13:00.009 TRACE http: hyper::client::pool: take? ("http", 127.0.0.1:9001): expiration = Some(90s)
ingress1_1 | Apr 19 14:13:00.009 DEBUG http: hyper::client::pool: reuse idle connection for ("http", 127.0.0.1:9001)
ingress1_1 | Apr 19 14:13:00.011 TRACE encode_headers: hyper::proto::h1::
View AboutComponent.js
import React from 'react';
import { Breadcrumb, BreadcrumbItem, Card, CardBody, CardHeader, Media } from 'reactstrap';
import { Link } from 'react-router-dom';
function RenderAuthor({author}) {
return (
<div className="row">
<div className="col-2">
<Media width="100%" className="mt-4" object src={author.image} alt={author.name} />
</div>
View chatbot.c
#include <stdio.h>
#include <stdio.h>
#include <string.h>
int getInput(char [128]);
int removeSpaces(char [128]);
int main()
{
char input[128];
@compcon
compcon / pilot.txt
Created Apr 20, 2021
Nyang - Nyang Qi (LL:0)
View pilot.txt
{"id":"0cc2b3d3-c0a1-4507-a802-3c1a2dd06674","group":"Szczecin team","sort_index":0,"isLocal":true,"cloudID":"","cloudOwnerID":"","gistCode":"","gistOwner":"28a0ae75-c1f3-4eae-9722-6deec0a38b8d","lastSync":"2021-04-19T20:53:49.304Z","level":0,"callsign":"Nyang","name":"Nyang Qi","player_name":"","status":"Active","dead":false,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"https://i.imgur.com/5Ar7AgS.png","quirks":[],"current_hp":9,"reserves":[],"orgs":[],"background":"HACKER","mechSkills":[0,0,2,0],"licenses":[],"skills":[{"id":"sk_blow_something_up","rank":1},{"id":"sk_read_a_situation","rank":1},{"id":"sk_charm","rank":1},{"id":"sk_hack_or_fix","rank":1}],"talents":[{"id":"t_hacker","rank":1},{"id":"t_spotter","rank":1},{"id":"t_technophile","rank":1}],"core_bonuses":[],"loadout":{"id":"e14861bf-7a40-4197-8e52-dd698b83e406","name":"Primary","armor":[{"id":"pg_light_hardsuit","destroyed":false,"cascading":false,"customDamageType":null}],"weapons":[{"id":"pg_archaic_melee","destr
@tobiu
tobiu / MainContainerController.mjs
Created Apr 20, 2021
Neo.examples.model.advanced.MainContainerController
View MainContainerController.mjs
import Component from '../../../src/controller/Component.mjs';
/**
* @class Neo.examples.model.advanced.MainContainerController
* @extends Neo.controller.Component
*/
class MainContainerController extends Component {
static getConfig() {return {
/**
* @member {String} className='Neo.examples.model.advanced.MainContainerController'
@AliWisam
AliWisam / Chimera.sol
Created Apr 20, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
View Chimera.sol
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
View untrusted-lvl5-solution.js
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions