Skip to content

Instantly share code, notes, and snippets.

View scroobius-pip's full-sized avatar
🏠
Working from home

simdi jinkins scroobius-pip

🏠
Working from home
View GitHub Profile
@scroobius-pip
scroobius-pip / Entire Guide
Created June 17, 2017 13:40 — forked from cmcsun/Entire Guide
May the Force be with You: A tulpa creation guide by Methos
May the Force be with You
A Tulpa Creation Guide
by Methos
Twitter: @GGMethos
ggmethos@autistici.org
v2.8
Last Edit: 6-Oct-2014
MAY THE FORCE BE WITH YOU
@scroobius-pip
scroobius-pip / eslint.config.md
Created November 10, 2016 02:15 — forked from Pepeye/eslint.config.md
Setup ES6+Babel+JSX Linting with Atom/Nuclide

Setup ES6+Babel+JSX Linting with Atom/Nuclide

This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.

Steps

  1. Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint)
  2. Run npm i -D eslint eslint-config-airbnb babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-react-native eslint-plugin-import eslint-plugin-jsx-a11y from your project root.
  3. Add "extends": "airbnb" to your .eslintrc and "plugins": [ "babel", "react", "react-native", "jsx-a11y" ]
  4. Run apm install linter-eslint this also installs linter which clashes with nuclide diagnostics
@scroobius-pip
scroobius-pip / perfectelementary.bash
Created November 9, 2016 11:41
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@scroobius-pip
scroobius-pip / determinant.py
Last active October 17, 2016 00:30 — forked from willhbr/matrix.py
Python Matrix Determinant Calculator
#! py
def solve(matrix, mul):
width = len(matrix)
if width == 1:
return mul * matrix[0][0]
else:
sign = -1
total = 0
for i in range(width):
m = []
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
@scroobius-pip
scroobius-pip / degToCard.js
Created July 9, 2016 04:45 — forked from felipeskroski-zz/degToCard.js
Javascript function to convert wind direction in degrees to cardinal.
var degToCard = function(deg){
if (deg>11.25 && deg<33.75){
return "NNE";
}else if (deg>33.75 && deg<56.25){
return "ENE";
}else if (deg>56.25 && deg<78.75){
return "E";
}else if (deg>78.75 && deg<101.25){
return "ESE";
}else if (deg>101.25 && deg<123.75){