This file contains hidden or 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
// MIT LICENSE | |
let x = document.querySelector("[data-testid='SearchBox_Search_Input']"); x.addEventListener('keyup', (e) => { | |
if(e.target.value.includes("from:")) { | |
e.target.value = e.target.value.split("from:").join("") | |
let parent = e.target.parentElement | |
let div = document.createElement("div"); | |
div.innerText= "From:" | |
parent.prepend(div) | |
div.style['padding'] = '5px 10px' |
This file contains hidden or 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
➜ theHardWay git:(master) ✗ ruby 1printing.rb NO ONE LIKES CHEESE | |
["NO", "ONE", "LIKES", "CHEESE"] | |
1printing.rb:95:in `initialize': No such file or directory @ rb_sysopen - NO (Errno::ENOENT) | |
from 1printing.rb:95:in `open' | |
from 1printing.rb:95:in `<main>' |
This file contains hidden or 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
CREATE TABLE users ( UserID int, LastName varchar(255), FirstName varchar(255), Address varchar(255), City varchar(255) ); |
This file contains hidden or 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
sdfasdf |
This file contains hidden or 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 is H3 with the default style | |
>>Moo | |
### This is H3 with the Moo style |
This file contains hidden or 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
class AddKeys < ActiveRecord::Migration | |
def self.up | |
add_foreign_key "catalog_item", "catalog", :name => "catalog_item_catalog_id_fk" | |
add_foreign_key "catalog_item", "product", :name => "catalog_item_product_id_fk" | |
add_foreign_key "history_bak", "realm", :name => "history_bak_realm_id_fk" | |
add_foreign_key "history_bak", "user", :name => "history_bak_user_id_fk" | |
add_foreign_key "history", "meeting", :name => "history_meeting_id_fk" | |
add_foreign_key "history", "realm", :name => "history_realm_id_fk" | |
add_foreign_key "history", "user", :name => "history_user_id_fk" | |
add_foreign_key "invoice_history", "user", :name => "invoice_history_user_id_fk" |
This file contains hidden or 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
Then /^I should see a JS alert$/ do | |
debugger | |
page.driver.browser.switch_to.alert | |
end |
This file contains hidden or 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
Then /^I should see a JS alert$/ do | |
debugger | |
page.driver.browser.switch_to.alert | |
end |
This file contains hidden or 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
def my_method | |
"This is a great idea." | |
end |
NewerOlder