Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block roNn23

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
roNn23 / coloors-co-shades-in-console.js
Created Aug 4, 2019
Prints all colors from a scheme in the console to copy the values more easily
View coloors-co-shades-in-console.js
let allColorData = [];
document.querySelectorAll('#colors .color').forEach(colorNode => {
const colorData = {
name: colorNode.querySelector('.color-info-name').textContent,
hex: colorNode.querySelector('.hex input').value,
shades: []
roNn23 / small-component.js
Last active Jul 24, 2019
components #react
View small-component.js
// eslint-disable-next-line react/prop-types
const AvailableAddress = ({ address }) => {
return (
<AddressStatus address={address} status="isAvailable" />
roNn23 / react-jest-testing.js
Created Jul 16, 2019
React/Jest Testing #react #js #testing
View react-jest-testing.js
// simple component test
import React from 'react';
import { shallow } from 'enzyme';
import Button from './Button';
function setupComponent (props) {
return shallow(<Button {...props} />);
it('should render the button', () => {
View Copy Jira Task-ID and Tasktitle.js
// full version
(function () {
var node = document.createElement('textarea')
var selection = document.getSelection()
let issue = '';
if(document.querySelector('#issuekey-val')) {
issue = document.querySelector('#issuekey-val').textContent;
View close applications in alfred
on alfred_script(q)
tell application "Sequel Pro" to quit
tell application "Dash" to quit
tell application "Tower" to quit
tell application "iTerm" to quit
tell application "Sublime Text 2" to quit
end alfred_script
roNn23 / gist:2283945b5f5d29a5e98b74114a0829bc
Created Jun 11, 2017 — forked from Moligaloo/gist:3850710
Send mail with attachment and signature via AppleScript in OS X
View gist:2283945b5f5d29a5e98b74114a0829bc
tell application "Mail"
set theSubject to "Subject" -- the subject
set theContent to "Content" -- the content
set theAddress to "" -- the receiver
set theSignatureName to "signature_name"-- the signature name
set theAttachmentFile to "Macintosh HD:Users:moligaloo:Downloads:attachment.pdf" -- the attachment path
set msg to make new outgoing message with properties {subject: theSubject, content: theContent, visible:true}
View angular-window-resize-event.js
* Window resize event handling
angular.element($window).on('resize', function () {
roNn23 / laravel.js
Last active Jul 16, 2019 — forked from JeffreyWay/laravel.js
Updated delete-script of Jeffrey Way to work with Laravel 5. And optimized the implementation for the CSRF token. #laravel
View laravel.js
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
Add this to your view:
window.csrfToken = '<?php echo csrf_token(); ?>';
You can’t perform that action at this time.