Skip to content

Instantly share code, notes, and snippets.

View mmcgahan's full-sized avatar

Mike McGahan mmcgahan

View GitHub Profile
@mmcgahan
mmcgahan / private.diff
Created May 16, 2014 16:54
send to chapter_private on both platforms
diff --git a/src/com/meetup/action/ChapterMemberProfile.java b/src/com/meetup/action/ChapterMemberProfile.java
index be4ff09..1138ac4 100644
--- a/src/com/meetup/action/ChapterMemberProfile.java
+++ b/src/com/meetup/action/ChapterMemberProfile.java
@@ -64,6 +64,14 @@ public class ChapterMemberProfile extends ChapterAction {
if (U.isEmpty(op))
op = "index";
+ // if group is private, only members can see
+ // unless a pending member is looking at their own profile
diff --git a/modules/chapstick/src/main/java/com/meetup/business/MeetstacheBusiness.java b/modules/chapstick/src/main/java/com/meetup/business/MeetstacheBusiness.java
index 58fb1ae..a233b91 100644
--- a/modules/chapstick/src/main/java/com/meetup/business/MeetstacheBusiness.java
+++ b/modules/chapstick/src/main/java/com/meetup/business/MeetstacheBusiness.java
@@ -18,6 +18,7 @@ import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.common.collect.Maps;
+import com.google.common.collect.ImmutableMap;
@mmcgahan
mmcgahan / gist:6309664
Last active December 21, 2015 12:59
unfilled info icon SASS mixin
@mixin unfilledInfo($color: $C_darkblue, $backgroundColor: white, $iconSize: 16px, $borderWidth: 1px, $borderColor: false) {
// $iconSize must be in px, defaults to small
// info icon is "filled" but we want to simulate un-filled
// therefore background-color = letter color (the see-through part)
// border-color = circle border color
// color = color inside circle (the filled-in part of icon)
// this might make a good mixin for red-label
@if not $borderColor {
$borderColor: $color;
index a2b9728..7143b31 100644
--- a/src/util/linksHelper.js
+++ b/src/util/linksHelper.js
@@ -1,6 +1,8 @@
import {
generateGroupRoute,
generateGroupCommunicationRoute,
+ generateRegisterRoute,
+ generateRegisterChildRoute,
} from './routesHelper';
const path = require('path');
const webpack = require('webpack');
const ManifestPlugin = require('webpack-manifest-plugin');
const StatsPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
const paths = require('mwp-cli/lib/config/paths');
const env = require('mwp-cli/lib/config/env');
const prodPlugins = require('mwp-cli/lib/config/webpack/prodPlugins');
const rules = require('mwp-cli/lib/config/webpack/rules');
@mmcgahan
mmcgahan / cloudSettings
Last active January 17, 2018 00:54
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-01-17T00:54:28.795Z","extensionVersion":"v2.8.7"}
Path Component Query
ExploreHomeContainerComponent (query requires specific params)
(query requires specific params)
/account none members/self
noop
/account/redesign RedesignRedirect members/self
noop
/account/* Error404Component members/self
noop
/explore ExploreFindContainerComponent members/self
noop
find/topic_categories
find/locations
/about AboutContainer members/self
noop
/about/hostatwework WolverineFormContainerComponent members/self
noop
self/groups
/about/allforwe WolverineContainerComponent members/selfnoop
Path Component Query
/ AppContainer (query requires specific params)
(query requires specific params)
/account none members/self
noop
/account/redesign RedesignRedirect members/self
noop
/account/* Error404Component members/self
noop
/about none members/self
noop
/about/hostatwework: (no wrapper component - TODO get index)
/about/* Error404Component members/self
noop
/media: (no wrapper component - TODO get index)
@mmcgahan
mmcgahan / table.md
Last active December 18, 2018 19:41
Path Component Query
/ AppContainer (query requires specific params)
(query requires specific params)
/bookspace BookSpaceComponent members/self
noop
/bookspace/* Error404Component members/self
noop
/account none members/self
noop
/account/redesign RedesignRedirect members/self
noop
/account/* Error404Component members/self
noop
/about none members/self
noop
/about/hostatwework: (no wrapper component - TODO get index)
const path = require('path');
const webpack = require('webpack');
const ManifestPlugin = require('webpack-manifest-plugin');
const StatsPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
const { env, paths } = require('mwp-config');
const prodPlugins = require('./prodPlugins');
const rules = require('./rules');