Skip to content

Instantly share code, notes, and snippets.

import {
Injectable,
ViewContainerRef,
ComponentFactoryResolver,
ReflectiveInjector,
ComponentRef,
} from '@angular/core';
@Injectable()
export class ModalContext {
import { Component, OnInit } from '@angular/core';
import { ModalContext } from '../modal/modal.service';
@Component({
selector: 'app-sample-modal',
templateUrl: './sample-modal.component.html',
styleUrls: ['./sample-modal.component.scss']
})
export class SampleModalComponent implements OnInit {
this.modal.open<string>(SampleModalComponent).then(name => {
if (name) {
this.title = `Hello ${name}`;
} else {
this.notification.open('Name was not set', 'danger', 3);
}
}).catch(e => {
// rejected
this.notification.open('Modal was closed', 'warning', 3);
if (e) {
#!/bin/bash
cd ./Youtube-Watch-History-Scraper-master
pip install scrapy lxml sqlalchemy
scrapy crawl yth_spider
@shumbo
shumbo / time.csv
Created December 31, 2016 06:41
select * from videoshistory order by time desc limit 10
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
id,vid,author_id,title,description,time
928,/watch?v=6q36pnzcw70,/user/sibchtv,【LIVE CAMERA】渋谷スクランブル交差点 ライブ映像 Shibuya scramble crossing,You can watch live camera at Shibuya scramble crossing!!Check out the latest trends from Shibuya Tokyo Japan. http://www.sibch.tvsibch.tv brings you the information you can not get from travel ...,29155334
5501,/watch?v=QKaDDQsbLcM,/user/JoNaThAn115100,Pegboard Nerds - Hero (feat. Elizaveta) [Monstercat Release] 10 hour version,Thanks for watching! You guys did it get the other one to 50 likes so as promised here is the 10 hour one,36235
12493,/watch?v=XLXS7BeSYlw,/user/SuperCompiter5,Minecraft Theme Remix 10 Hour,no need to replayAs promised this is the special video all you guys been waiting for. My 100th video SPECIAL. Please Like it for it took 3 days to upload this !Purchase Minecraft Here :http:/...,36079
1510,/watch?v=_YFnfYJaqlA,/user/ChromeDevelopers,Polymer Developer Summit 2016 - Live Stream Day 1,"Check out the live stream on Day 1 of the Polymer Developer Summit

Keybase proof

I hereby claim:

  • I am shumbo on github.
  • I am shun_kashiwa (https://keybase.io/shun_kashiwa) on keybase.
  • I have a public key whose fingerprint is 66AF A51F 5661 F165 0126 22F6 DAAC C16A D9D1 3389

To claim this, I am signing this object:

<?php while (have_posts()) : the_post(); ?>
<?php $skip_sidebar = get_post_meta( $post->ID, 'skip_sidebar', true ); ?>
<div class="col-md-12">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'row' ); ?> itemscope itemtype="http://schema.org/Article">
<header class="entry-header">
<?php the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?>
@shumbo
shumbo / mastodon.model.ts
Last active April 24, 2017 10:37
TypeScript interfaces for Mastodon APIs
// Based on https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md
export interface Account {
id: number;
username: string;
acct: string;
display_name: string;
locked: string;
created_at: string;
followers_count: number;
タイプ Multiplier
ズリの実 1.5
金のズリの実 2
カーブボール 1.7
スローボーナス 2-r
モンスターボール 1.0
プレミアボール 1.0
スーパーボール 1.5
ハイパーボール 2.0
{
"rwk_TZ": "TZS",
"jmc_TZ": "TZS",
"lag_TZ": "TZS",
"sw_TZ": "TZS",
"ksb_TZ": "TZS",
"bez_TZ": "TZS",
"asa_TZ": "TZS",
"sbp_TZ": "TZS",
"vun_TZ": "TZS",