Skip to content

Instantly share code, notes, and snippets.

{
"@context": {
"@context": {
"@vocab": "https://spdci.org/",
"schema": "http://schema.org/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"CRVSPerson": {
"@id": "https://spdci.org/CRVSPerson",
"@type": "rdfs:Class",
@jeremi
jeremi / employees.org
Created November 23, 2020 02:09
logseq employee database

Employees

**

Keybase proof

I hereby claim:

  • I am jeremi on github.
  • I am jeremi (https://keybase.io/jeremi) on keybase.
  • I have a public key ASBISii5wwJm-ASryLAikxxTM5c4CwYG00FZYSFkBwqCIAo

To claim this, I am signing this object:

// Let's add a new Email record
$parameters = array(
'session' => $sessionId,
'module' => 'Emails',
'name_value_list' => array(
array('name' => 'name', 'value' => 'email body'),
array('name' => 'from_addr', 'value' => '[email protected]'),
array('name' => 'to_addrs', 'value' => '[email protected]'),
array('name' => 'date_sent', 'value' => gmdate("Y-m-d H:i:s")),
array('name' => 'description', 'value' => 'This is an email created from a REST web services call'),
@jeremi
jeremi / selenium_dom.py
Created February 9, 2012 09:51 — forked from pamelafox/selenium_dom.py
Python Selenium Dom Helper Functions
from selenium.common.exceptions import NoSuchElementException, TimeoutException
class DomHelper(object):
driver = None
waiter = None
def open_page(self, url):
self.driver.get(url)
@jeremi
jeremi / base_tests.py
Created February 9, 2012 09:47 — forked from pamelafox/base_tests.py
Python Selenium Base TestCase
import unittest
import datetime
from sys import *
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import login_dom
class BaseTests(unittest.TestCase):
@jeremi
jeremi / test.py
Created February 8, 2012 11:50
Chosen test using selenium web driver in Python
from selenium import webdriver
def select_from_chosen(driver, id, value):
chosen = driver.find_element_by_id(id + '_chzn')
results = chosen.find_elements_by_css_selector(".chzn-results li")
found = False
for result in results:
if result.text == value:
@jeremi
jeremi / auto_resize_textarea.js
Created March 9, 2011 09:51
inspired from the jquery.autogrow-textarea.js plugin
AS.AutoResizeTextAreaView = SC.TextFieldView.extend(
/** @scope AS.AutoResizeTextAreaView.prototype */ {
isTextArea: YES,
layout: {minHeight: 50},
didCreateLayer: function() {
sc_super();
this.initAutoResize();
},
@jeremi
jeremi / upload.js.diff
Created February 7, 2011 10:16
Fix upload.js
diff --git a/frameworks/foundation/views/upload.js b/frameworks/foundation/views/upload.js
index 0447687..90f534f 100644
--- a/frameworks/foundation/views/upload.js
+++ b/frameworks/foundation/views/upload.js
@@ -11,6 +11,46 @@
@author Evin Grano
*/
+// Add the bind() function to the Function prototype.
+SC.mixin(Function.prototype, {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;
using System.IO;
namespace ConsoleApplication1
{