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
var i = function(f1, f2) { $('body > div:nth-child(21) > div:nth-child(2) > div > div:nth-child(5) > div > div > div:nth-child(4) > div > div:nth-child(3) > div > div:nth-child(3) > div > div:nth-child(4) > div > div:nth-child(2) > div > div.component_editor_panel > div > div:nth-child(2) > div > div:nth-child(3) > div > div:nth-child(8) > div > div:nth-child(2) > div > div:nth-child(3) > div > div.text_search_box > input').value = f1; $('body > div:nth-child(21) > div:nth-child(2) > div > div:nth-child(5) > div > div > div:nth-child(4) > div > div:nth-child(3) > div > div:nth-child(3) > div > div:nth-child(4) > div > div:nth-child(2) > div > div.component_editor_panel > div > div:nth-child(2) > div > div:nth-child(3) > div > div:nth-child(8) > div > div:nth-child(4) > div > div:nth-child(3) > div > div.text_search_box > input').value = f2; }; | |
var j = function(arg) { var spl = arg.split('\t'); i.call(spl); console.log(spl); i.apply(this, spl);} | |
j('src_field dest_field'); |
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 is your nginx.conf to setting up a proxy, changing the | |
# HTTP method from * to PATCH, and forward the request. | |
http { | |
server { | |
listen 80; | |
location / { | |
proxy_method PATCH; | |
proxy_pass http://YOUR_URL:YOUR_PORT/; | |
} |
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
❯ RUST_BACKTRACE=full cargo run --bin main | |
Compiling ... | |
error[E0412]: cannot find type `table` in module `age_within_the_range_gs` | |
--> src/models/age_within_the_range_gs.rs:18:10 | |
| | |
18 | #[derive(AsChangeset, Clone, Debug, Insertable, RustcDecodable, RustcEncodable)] | |
| ^^^^^^^^^^^ did you mean `Table`? | |
| | |
help: possible candidates are found in other modules, you can import them into scope | |
| |
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
#[derive(Debug, RustcEncodable)] | |
struct ByRoughSegm { | |
count: i32, | |
id: i32, | |
kut_id: i32, | |
oe_id: i32, | |
sector_id: i32, | |
segment_id: i32, | |
} |
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
let vec = X::find_all_based_on_y(y); | |
fn1(&Some(vec)); | |
fn2(&Some(vec)); | |
fn3(&Some(vec)); | |
… |
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
macro_rules! generate_import_struct { | |
($doc:expr, name: $name:ident, $($element: ident: $ty: ty : $elem_doc: expr),*) => { | |
#[doc=$doc] | |
pub struct $name { | |
pub id: i32, | |
$(#[doc=$elem_doc] | |
pub $element: $ty),* | |
} | |
} | |
} |
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 DS from 'ember-data'; | |
//import ENV from '../config/environment'; | |
export default DS.JSONAPIAdapter.extend({ | |
host: '',// is configured in environment | |
namespace: ''// is configured in environment, | |
}); |
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
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME='blz' AND (COLUMN_KEY>''); |
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
lcount=0; echo 'Please enter your mysql username:'; read mysqluser; echo '\nPlease enter your mysql password:'; read mysqlpw; echo 'SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME="blz" AND !(COLUMN_KEY>"") AND TABLE_SCHEMA="macsi";' | mysql -u$mysqluser -p$mysqlpw macsi | while read -r line; do if [ "$line" != "TABLE_NAME" ]; then ((lcount++)); echo 'ALTER TABLE `'$line'` ADD INDEX(`blz`);' | mysql -u$mysqluser -p$mysqlpw macsi; fi; done; echo '\n'$(tput setaf 2)'Successfully altered '$(tput setaf 3)$lcount$(tput setaf 2)' tables (added index to them).'; |
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
fn main() { | |
let i_start: i8 = 50; | |
let i_end: i8 = 64; | |
for i in i_start..i_end { | |
let l = twice(i); | |
println!("{}", l); | |
} | |
} | |
fn twice(a: i8) -> i8 { |
NewerOlder