This will be how we will edit the code. It's lightweight and pretty awesome.
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
<div class="admin_page"> | |
<textarea></textarea> | |
</div> |
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
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<style> | |
.admin_page textarea { | |
height: 200px; | |
} | |
</style> | |
<div class="admin_page"> | |
<div> | |
<div class="form-group"> |
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 * as mongoose from "mongoose"; | |
export interface LSClass { | |
create: Boolean; | |
delete: Boolean; | |
} | |
export interface LS { | |
class: LSClass; | |
} |
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
@Injectable() | |
export class AccountService { | |
constructor( | |
private http: Http) { | |
// This allows the cookie to be set and sent. | |
// It appears that once the cookie is set with login, it works for each call (even in other services) | |
let _build = (<any>http)._backend._browserXHR.build; | |
(<any>http)._backend._browserXHR.build = () => { | |
let _xhr = _build(); |
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 { | |
it, | |
inject, | |
describe, | |
beforeEach, | |
beforeEachProviders, | |
expect, | |
} from '@angular/core/testing'; | |
import { BaseRequestOptions, Response, ResponseOptions, Http } from '@angular/http'; | |
import { MockBackend, MockConnection } from '@angular/http/testing'; |
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 { | |
Component, | |
NgModule, | |
Input, | |
Output, | |
EventEmitter, | |
forwardRef, | |
ModuleWithProviders | |
} from '@angular/core'; | |
import { NG_VALUE_ACCESSOR, ControlValueAccessor, FormsModule, ReactiveFormsModule } from '@angular/forms'; |
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
<input | |
[id]="id ? id : ''" | |
[type]="type" | |
[placeholder]="placeholder ? placeholder : ''" | |
[attr.name]="name" | |
[tabIndex]="tabIndex ? tabIndex : ''" | |
[checked]="checked !== undefined ? checked : ''" | |
[required]="required" | |
(focus)="focus.emit($event); isFocused = true;" | |
(blur)="blur.emit($event); isFocused = 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
let tables = document.getElementsByTagName('table'); | |
let rows = tables[2].getElementsByTagName('tr'); | |
let books = []; | |
for (let i = 0; i < rows.length; i++) { | |
try { | |
// It's generally a normal row if there is a fourth cell | |
if (rows[i].cells[3]) { | |
let url = rows[i].cells[3].children[0].href; | |
let title = rows[i].cells[3].children[0].innerText; |
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 requests | |
import datetime as dt | |
import requests | |
first_user = '80623424' | |
second_user = '887227975' | |
def get_intervals(l): |
OlderNewer