Skip to content

Instantly share code, notes, and snippets.

@xaqrox
xaqrox / particle.py
Created August 13, 2014 03:13
Particle Clicker Calculator
import operator
class Trade:
def __init__(self, name, value, cost):
self.name = name
self.value = value
self.cost = cost
def updateValue(self, newValue):
self.value = newValue
@xaqrox
xaqrox / README.md
Last active August 29, 2015 14:19 — forked from dbuezas/README.md

This variation of a donut chart demonstrates how to add labels with lines and also works with missing/new data. Clicking on the button changes the displayed data.

<head>
<title> Alex's Quote Generator</title>
</head>
<body>
<div>
<h1 class = text-center>Star Wars Quote Generator</h1>
<button class = "center-block" id = "change-quote">This quote has disappointed me for the last time.</button>
$(document).ready( function() {
$.fn.extend({
toggleCheck: function (isChecked) {
var $element = $(this);
$element.find('input').prop('checked', isChecked);
$element.toggleClass('selected', isChecked);
}
});
var $containers = $('span.donation_amount_option_container'),
var http = require('http'),
env = require('jsdom').env,
_ = require('underscore');
http.get(
{
host: 'pitchfork.com',
port: '80',
path: 'reviews/albums/20189-the-moon-rang-like-a-bell-remixed',
},
@xaqrox
xaqrox / fields.md
Last active July 6, 2016 19:39
Pulitzer Site Structure Report

Contexts

Tag: NONE (23)

dashboard

Conditions (All)

  • path
    • dashboard/*
  • user
@xaqrox
xaqrox / napcs.md
Last active May 30, 2017 18:27
NAPCS Functional Requirements

National Alliance for Publice Charter Schools Main Website Functional Requirements

Content Types

Existing types

Content in custom post types that exist in the current site will be selectively migrated, adapted, or abandoned as appropriate.

Attachment (2303)

Every media file uploaded to WordPress is represented as an Attachment. NAPCS wants to keep some of these, and is free to delete unwanted files from the current site at any time. The desired files and related metadata will be selectively migrated, either by some size/age/type criteria, or according to a white- or black- list provided by NAPCS, or some combination. More discussion is needed.

let &titleold=getcwd()
" Following lines added by drush vimrc-install on Mon, 26 Jan 2015 20:11:13 +0000.
set nocompatible
call pathogen#infect('/home/xaq/.drush/vimrc/bundle/{}')
call pathogen#infect('/home/xaq/.vim/bundle/{}')
" End of vimrc-install additions.
" Change mapleader
let mapleader=","
@xaqrox
xaqrox / main.css.diff
Last active November 27, 2018 21:24
live main.css after "gulp css"
diff --git a/src/wp-content/themes/yold-season2/assets/css/main.css b/src/wp-content/themes/yold-season2/assets/css/main.css
index 82bf2a30..c45258fe 100644
--- a/src/wp-content/themes/yold-season2/assets/css/main.css
+++ b/src/wp-content/themes/yold-season2/assets/css/main.css
@@ -17,36 +17,19 @@ Variables
Mixins
========================================================================== */
/* Module mixins */
-#module .title {
- font: 100 50px / 0.9 "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
@xaqrox
xaqrox / main.css.diff
Created November 27, 2018 21:18
main.css git bundle -> live site
diff --git a/src/wp-content/themes/yold-season2/assets/css/main.css b/src/wp-content/themes/yold-season2/assets/css/main.css
index 84f1e3f6..82bf2a30 100644
--- a/src/wp-content/themes/yold-season2/assets/css/main.css
+++ b/src/wp-content/themes/yold-season2/assets/css/main.css
@@ -9061,7 +9061,7 @@ fieldset[disabled] .btn.btn-twitter-blue.focus {
-webkit-transition: 0.35s;
-o-transition: 0.35s;
transition: 0.35s;
- padding: 20px;
+ padding: 10px 20px;