_-\0/-_
|\ /|
| \ / |
{ } \_/ { }
/ \
/ \
- -
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
#include<unordered_set> | |
#include<vector> | |
#include<unordered_map> | |
#include<iostream> | |
using namespace std; | |
class Solution { | |
public: | |
vector<int> findOrder(int numCourses, vector<vector<int>>& prerequisites) { |
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
#include<vector> | |
#include<unordered_map> | |
#include<stack> | |
#include<iostream> | |
using namespace std; | |
bool findCycle(int head, unordered_map<int, vector<int>> &graph, vector<bool> &black, vector<bool> &gray){ | |
if (black[head]){ | |
return false; |
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
plt.figure(figsize=(50,50)) | |
ax = plt.plot(df1['close'], color='b', label='close') | |
ax2 = plt.gca().twinx() | |
plt.plot(df1['HT_TRENDMODE'], color='r', label='close') | |
plt.legend() |
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
function Model(stuff) { | |
this.d_stuffInterface = stuff; | |
} | |
Model.prototype.init = function (){ | |
return this.d_stuffInterface.getData().then(function(data){ | |
this.d_data = data; | |
return data; | |
}.bind(this); | |
} |
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
{ | |
"arguments":[ | |
[ | |
{ | |
"module":"BatchedBridge", | |
"method":"invokeCallbackAndReturnFlushedQueue", | |
"args":[ | |
3, | |
[ | |
null, |
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
[ | |
[ | |
11, | |
25, | |
25, | |
25, | |
25, | |
25, | |
25, | |
25, |
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
var coffee = require('gulp-coffee'); | |
var eventStream = require('event-stream'); | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var scriptsDirs = [ | |
'bower_components/este-library/este/', | |
'client/', | |
'server/' | |
]; |
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
#include <iostream> | |
using namespace std; | |
#include <iostream> | |
using namespace std; | |
class Rectangle { | |
int width, height; | |
public: | |
Rectangle (int,int); |
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
{ | |
"requireCurlyBraces": ["else", "for", "while", "do", "try", "catch"], | |
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], | |
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], | |
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], | |
"requireRightStickedOperators": ["!"], | |
"requireLeftStickedOperators": [","], | |
"disallowImplicitTypeConversion": ["string"], | |
"disallowKeywords": ["with"], | |
"disallowMultipleLineBreaks": true, |
NewerOlder