Skip to content

Instantly share code, notes, and snippets.

View puresamari's full-sized avatar
👁️
TERNARY OPERATORS ARE BAE

Simon Rothert puresamari

👁️
TERNARY OPERATORS ARE BAE
View GitHub Profile
@puresamari
puresamari / test.json
Last active December 20, 2018 14:03
Super testy
{
"calendar": [
{
"weekday": "Monday",
"title": "Art in Full Color",
"description": "The first day of CAC events and exhibits is kicked off under the theme of Art in Full Color From a demonstration in graffiti art on a wall of the Rousseau Room, to the exhibit of colorful glazed modern glassware in the Dover Hall, Art in Full Color will get CAC started in full swing!",
"schedule": [
{
"time": "9:30-10:30am",
"shortname": "LaVonne_LaRue",
@puresamari
puresamari / keybindings.json
Last active June 28, 2016 16:13
My personal Visual Code Configuration
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "cmd+shift+7", "command": "editor.action.commentLine", "when": "editorTextFocus" }
]
@puresamari
puresamari / prism js copy code
Created May 12, 2016 17:41
copy code from a prismjs code element with linebreaks in plain es5
var codes = document.querySelectorAll('pre');
function copyCode(e) {
var text = this.textContent || this.innerText,
temp = document.createElement('textarea');
document.body.appendChild(temp);
temp.value = text;
temp.select();
document.execCommand('copy');
temp.remove();
@puresamari
puresamari / overscroll background-color on ios
Created May 12, 2016 13:37
try this if you want to have a background color / image on an ios overscroll
body:after {
content: '';
position: fixed;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
z-index: -1;
background: #000000;
}
QApplication,
QMainWindow, QFrame, QDockWidget, QDialog, QFileDialog, QMessageBox{
background: white;
border: none;
color: #212121;
}
QToolBar {
background: #0097A7;
@puresamari
puresamari / gulpfile.js
Created February 25, 2016 13:39
My Gulpfile.js for angular 1.5.0 and Wordpress
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
concat = require('gulp-concat-util'),
uglify = require('gulp-uglify'),
wrap = require("gulp-wrap");
var attrs = {
wp_theme_path: './wordpress/wp-content/themes/my_theme/',