This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name SalesForce UI enhancements | |
// @namespace http://www.paymill.com | |
// @version 0.6 | |
// @description SalesForce UI enhancements | |
// @match *.salesforce.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @grant GM_addStyle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
mydict=lambda:defaultdict(l) | |
recursiveDefDict = mydict() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
playing = True | |
def recieveMessage(): | |
print "hi!" | |
data = s.recv(512).decode() | |
if data == "Greetings\n": | |
print("Welcome to the number guessing game.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import select | |
import socket | |
import random | |
import ssl | |
sockList = [] | |
playing = False | |
guesses = 0 | |
guess = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, render_template | |
from flask.ext.wtf import Form, widgets, SelectMultipleField | |
SECRET_KEY = 'development' | |
app = Flask(__name__) | |
app.config.from_object(__name__) | |
class MultiCheckboxField(SelectMultipleField): | |
widget = widgets.ListWidget(prefix_label=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html' %} | |
{% import 'macros.html' as macros %} | |
{% block content %} | |
<div class="row"> | |
<div class="col-xs-12 col-md-3 col-sm-4 col-sm-offset-4 col-md-offset-4 col-lg-3 col-lg-offset-4"> | |
<div class="login-message"> | |
Login to AwesomeService! | |
</div> | |
{% call macros.render_form(form, action_url=url_for('login_view'), action_text='Login', | |
class_='login-form') %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jeremiah.marks@JEREMIAHMARKWL1 MINGW64 ~ | |
$ ln -s Desktop/Documents/GitHub/flasktool/ ft | |
jeremiah.marks@JEREMIAHMARKWL1 MINGW64 ~ | |
$ cd ft | |
jeremiah.marks@JEREMIAHMARKWL1 MINGW64 ~/ft (addmenu) | |
$ cd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$returnFields = array('Email', 'EmailAddress2', 'EmailAddress3'); | |
$conDat = $app->loadCon(41, $returnFields); | |
/*sorry I do not PHP, but you would want to loop through all of the returned addresses | |
and then opt each out ont, something like in sudo code*/ | |
for eachemailaddress in $conDat: | |
$app->optOut(eachemailaddress,"Why they opted out"); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; This gives an introduction to Emacs Lisp in 15 minutes (v0.2d) | |
;; | |
;; Author: Bastien / @bzg2 / http://bzg.fr | |
;; | |
;; First make sure you read this text by Peter Norvig: | |
;; http://norvig.com/21-days.html | |
;; | |
;; Then install GNU Emacs 24.3: | |
;; | |
;; Debian: apt-get install emacs (or see your distro instructions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
import Tkinter as tk | |
import tkFileDialog | |
tk.Tk().withdraw() | |
import os | |
def getFilePath(titletext="Please select a file"): | |
return tkFileDialog.askopenfilename(title=titletext) |