Skip to content

Instantly share code, notes, and snippets.

View particles_with_space_actor.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View cardFatTratamento.js
// Arguments passed into this controller can be accessed via the `$.args` object directly or:
var args = $.args;
$.setFatTratamento = function(fatTratamento){
$.fatTratamento.set(fatTratamento);
$.fatTratamento.trigger("change");
};
$.getFatTratamento= function(){
return $.fatTratamento;
@Vamsi-JS
Vamsi-JS / tmux-cheatsheet.markdown
Last active Jul 18, 2019 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@VermillionOne
VermillionOne / wp-placeholder-labels
Created Jul 18, 2019
WP - Placeholder instead of labels in Comment Forms
View wp-placeholder-labels
/**
* Change comment form textarea to use placeholder
*
* @since 1.0.0
* @param array $args
* @return array
*/
function ea_comment_textarea_placeholder( $args ) {
$args['comment_field'] = str_replace( 'textarea', 'textarea placeholder="Comment"', $args['comment_field'] );
return $args;
View test_skip.py
import sys
import pytest
from unittest.case import skipIf
pytestmark = pytest.mark.scanpy3 #NOQA
_sys_v0 = sys.version_info[0]
py2 = _sys_v0 == 2
py3 = _sys_v0 == 3
View función.kt
fun nombre_de_la_función(argumento: Tipo, otroArgumento: OtroTipo, ...): TipoDeValorQueDevuelve{
// Cuerpo de la función
return UnValor
}
View eul2quat_self.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Euler angle to quaternion
% input : roll,pitch,yaw [rad]
% output quaternion:
% you need robotics toolbox
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function Q = eul2quat_self(rpy)
roll = rpy(1);
View gist:2186233f0ada2ff64134a09e2a345d37
[10:15:06.457] [modloading-worker-1/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to create mod instance. ModID: defaultoptions, class net.blay09.mods.defaultoptions.DefaultOptions
java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER
at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClass(RuntimeDistCleaner.java:71) ~[forge-1.14.3-27.0.57.jar:27.0] {}
at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:59) ~[modlauncher-3.0.1.jar:?] {}
at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:114) ~[modlauncher-3.0.1.jar:?] {}
at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:236) ~[modlauncher-3.0.1.jar:?] {}
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:127) ~[modlauncher-3.0.1.jar:?] {}
at cpw.mods.modlauncher.TransformingClass
View Create.tsx
import React, { Fragment } from 'react';
import { withFormik, FormikProps, FieldArray } from 'formik';
import * as Yup from 'yup';
import styled from 'styled-components';
import { History } from 'history';
import AddPollMutation from './AddPollMutation';
import withToast from '../HOC/withToast';
import Header from '../common/Header/Header';
@ItsMeRTXYZ
ItsMeRTXYZ / launcher_profiles.json
Created Jul 18, 2019
minecraft launcher profiles
View launcher_profiles.json
{
"analyticsFailCount" : 0,
"analyticsToken" : "9fb591ef0bbf54e480a64dff62567b16",
"authenticationDatabase" : {
"78d7ab677be82711a91fd18c23f68a31" : {
"accessToken" : "8bd993bf3f744c7b9b5f326ea1bb22ef",
"profiles" : {
"04c8377b4f864a37be69a31dad04fea6" : {
"displayName" : "RedPCat"
}
You can’t perform that action at this time.