Skip to content

Instantly share code, notes, and snippets.

View janzenz's full-sized avatar
:octocat:
Working

Janzen Zarzoso janzenz

:octocat:
Working
View GitHub Profile
.jbmm.custom ul.mega-menuh li .sub-container.non-mega li a { /* padding: 7px 5px 7px 22px !important; background: url(/packages/jb_megamenu/blocks/jb_megamenu/css/skins/images/arrow_off.png) no-repeat 7px 10px; */
color: #111 !important;
text-align: left;
font-size: 15px;
padding: 15px !important;
}
<?php
namespace RentalPos\BookingBundle\Security;
use FOS\UserBundle\Security\LoginManagerInterface;
use FOS\UserBundle\Model\UserInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
@janzenz
janzenz / emailHTML.asp
Created October 1, 2014 15:12
West Coast Finance
With cdoConfig.Fields
.Item(sch & "sendusing") = 2
.Item(sch & "smtpserver") = "localhost" 'mailserver
.Item(sch & "smtpserverport") = 25
.Item(sch & "smtpserver") = "mail.westcoastfinance.com.au" 'mailserver
.Item(sch & "smtpusessl") = false
.Item(sch & "smtpconnectiontimeout") = 60
.Item(sch & "smtpauthenticate") = 1
.Item(sch & "sendusername") = "send@westcoastfinance.com.au"
.Item(sch & "sendpassword") = "update"
---
- hosts: web2
gather_facts: no
remote_user: vagrant
tasks:
- name: debug user 1
shell: "whoami"
- name: debug user 2
@janzenz
janzenz / disable.js
Last active July 6, 2016 19:24
Google Maps Zoom disable
var googleMaps = document.querySelectorAll(".google-maps-container");
for (var i = 0; i < googleMaps.length; i++) {
googleMaps[i].onclick = function(e) {
e.target.getElementsByTagName("iframe")[0].style["pointer-events"] = 'auto';
};
googleMaps[i].onmouseout = function(e) {
e.target.getElementsByTagName("iframe")[0].style["pointer-events"] = 'none';
}
}
@janzenz
janzenz / map-info-container.html
Last active August 4, 2016 12:22
RM Devices - Map Info container
<!--
Important parts here for the map-info-container:
This is the attributes that specify which marker it is linked to.
Make sure to keep the prefix "addr-" the suffix can be anything
for example purposes I used the full name.
id="addr-arizona"
This is the positioning for the marker based on the map and this is using percentage.
@janzenz
janzenz / asp-form.css
Last active December 12, 2016 16:34
BD Styling
/* ----- FORM Syling ----- */
/* Define the form frame */
.frm__frame {
background-color: #fcfcfc;
border-color: none; /* This should be changed. Based on the site's overall color see here: https://drive.google.com/open?id=0B2MfNegiYrF_bXgza1RaNG1sdXM */
border-style: solid;
border-width: 1px;
border-radius: .5rem;
}
@janzenz
janzenz / README.md
Last active January 23, 2017 00:25
This is my Solution for Pruning the TMUX Saved Sessions in tmux-resurrect

Make sure the shell is executable chown <userid>:<userid> tmux-resurrect-prune.sh chmod 4750 tmux-resurrect-prune.sh to make sure this is runnable and that you alone can run it under your user.

Load the .plist file, ironically you have to run this outside of tmux or you will get Operation not permitted error: http://superuser.com/questions/879640/error-while-trying-to-start-postgres-installed-via-homebrew-operation-not-permi/898585 launchtl load tmux-resurrect-prune.plist http://stackoverflow.com/questions/4485972/library-launchagents-plist-runs-manually-but-not-automatically I was looking for a way to do this run at machine wake:

@janzenz
janzenz / .eslintrc.json
Created March 13, 2017 07:31
ESLint for Meteor + React Development
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:meteor/recommended"
],
@janzenz
janzenz / MyComponent.js
Created March 13, 2017 07:33
Sample Component
import React, { Component } from 'react';
class MyComponent extends Component {
static propTypes = {
}
render() {
return (
<div>This is My Component!</div>
);