Skip to content

Instantly share code, notes, and snippets.

@jgonera
jgonera / gist:3084341
Created July 10, 2012 16:05
Google Chart: Scatter Chart with a line
<!doctype html>
<html>
<head>
<title>Google Chart: Scatter Chart with a line</title>
<meta charset="UTF-8" />
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", { packages: ["corechart"] });
google.setOnLoadCallback(drawChart);
function drawChart() {
<?php
# This file was automatically generated by the MediaWiki 1.21alpha
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
@jgonera
jgonera / codeGuidelines.markdown
Last active December 15, 2015 09:29
MobileFrontend code guidelines

Code guidelines

This document briefly describes guidelines for writing code for the MobileFrontend MediaWiki extension.

File names

@jgonera
jgonera / has3d.js
Last active December 15, 2015 11:09 — forked from lorenzopolidori/has3d.js
This version sandboxes el inside an iframe to avoid weird Android Browser quirks. Requires jQuery.
function has3d(){
var el = $('<p>')[0], $iframe = $('<iframe>'), has3d, t,
transforms = {
'webkitTransform': '-webkit-transform',
'OTransform': '-o-transform',
'msTransform': '-ms-transform',
'transform': 'transform'
};
// Add it to the body to get the computed style
@jgonera
jgonera / Maryana.sql
Last active December 19, 2015 02:59
SQL for fetching stats about uploaders
-- show users that uploaded at least twice
select
event_userName,
count(*) as count
from MobileWebUploads_5383883
where
event_action = 'success'
and wiki != 'testwiki'
group by event_userName
having
\curl -sSL https://get.rvm.io | bash -s stable
rvm install 2.1.0
***
$ git clone https://github.com/jgonera/qa-playground.git
$ cd qa-playground
$ bundle install
***
<!doctype html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
<h1>EDIT WARZ!!!11!1</h1>
<ul></ul>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Animated responsive bar chart</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background: #2e232b;
Update Homebrew:
> brew update
Install osxfuse:
> brew cask install osxfuse
Install ntfs-3g:
> brew install ntfs-3g
Link mount_ntfs:
upstream app {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name localhost;
location / {
proxy_read_timeout 600;