Skip to content

Instantly share code, notes, and snippets.

View marcuscaum's full-sized avatar
💭
embrace the journey

Marcus Caum marcuscaum

💭
embrace the journey
  • Irwin
View GitHub Profile
https://github.com/styled-components/styled-components/blob/master/README.md
import axios from 'axios';
const ROOT_URL = 'XXX';
const API_KEY = 'XXX';
export const FETCH_POSTS = generateActions('FETCH_POSTS');
export const CREATE_POST = generateActions('CREATE_POST');
export const FETCH_POST = generateActions('FETCH_POST');
export const DELETE_POST = generateActions('DELETE_POST');
- Close sidebar hide colorpicker
- Background not working for ('thank-you-page', 'extended text')
- Border bottom button ('hotsite')

#server_simple

#!/bin/sh
# Start the development server.

cd $(dirname "$0")/..
: ${RAILS_ENV:=development}

script/bootstrap && bundle exec rails s -p 3000 -b 0.0.0.0
@marcuscaum
marcuscaum / script.rb
Last active June 30, 2016 21:26
Remove phone mark from lp
def remove_phone(acc)
Account.find(acc).landing_pages_manager.landing_pages.each do |lp|
if lp.custom_js_body.present?
lp.custom_js_body << %Q(<script type="text/javascript"> if ($('input[class*="phone"]').length) { $('input[class*="phone"]').removeClass("phone")}</script>)
end
ActiveRecord::Base.record_timestamps = false
lp.save
if lp.published == 'yes'
<style>
.blog_description {
margin-left: 0 !important;
}
ul.categories_list li {
width: 25%;
float: left;
}
</style>
@marcuscaum
marcuscaum / gist:a25b07ec8d54267eae52
Created November 18, 2015 16:59
Relação de possíveis bots - 30 dias átras (18/10 ~ 18/11/2015)
[
{"r":"c2a7e064-bb29-4ffa-a06b-337c4be3f882","s":3145833811560,"t":1445271762728,"g":[[1052]],"m":"953 <190>1 2015-10-19T16:22:42.653426+00:00 d.750177c1-9768-4eb8-b689-d6673b2bb5ad app web.1 - - Possible bot tried conversion [create] - {\"token_rdstation\"=>\"6469e122e60ae20cdb12914409696c46\", \"identificador\"=>\"ebook-soap\", \"redirect_to\"=>\"http:\/\/info.endeavor.org.br\/obrigado-ebook-soap\", \"c_utmz\"=>\"108172378.1445256244.1.1.utmcsr=RD%20Station|utmccn=nova_news__19102015_-_empreendedores|utmcmd=email\", \"traffic_source\"=>\"\", \"emP7yF13ld\"=>\"rafaaquino@yahoo.com.br\", \"sh0uldN07ch4ng3\"=>\"should_not_change\", \"name\"=>\"Rafael Aquino Santiago\", \"email\"=>\"rafael@nciclo.com\", \"custom_fields\"=>{\"11459\"=>\"Sim\", \"30643\"=>\"Acima de 40%\", \"22676\"=>\"De R$ 360 mil a R$ 3,6 mi\", \"13084\"=>\"Sim\", \"22142\"=>\"Não\"}, \"captcha\"=>\"17\", \"referrer\"=>\"\", \"query_params\"=>\"utm_campaign=nova_news__19102015_-_empreendedores&utm_medium=email&utm_source=RD+Station\", \"clien
class LeadDecorator < Draper::Decorator
include Draper::LazyHelpers
include Lead::SearchHelper
delegate_all
def personal_phone
lead_field model.lead_info.personal_phone, label: :personal_phone
end
module DashboardHelper
TIME_WINDOW = 5.years.ago
def number_box(type)
if type == 'prs'
box(pr_values[:closed], prs_percentage, type)
elsif type == 'issues'
box(issues_values[:open], issues_percentage, type)
end