Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import React from 'react'; | |
import ReactResizeDetector from 'react-resize-detector'; | |
import PropTypes from 'prop-types'; | |
import ReactTooltip from 'react-tooltip'; | |
export default class OverflowTooltip extends React.Component { | |
constructor(props) { | |
super(props); | |
this.node = null; | |
this.onResize = this.onResize.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
function FindProxyForURL(url, host) { | |
switch (true) { | |
case shExpMatch(host, "localdev.*"): | |
return "PROXY localhost:3000"; | |
case shExpMatch(host, "jp.*.jobing.com"): | |
return "PROXY localhost:3000"; |
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
rvm_current() { | |
rvm current 2>/dev/null | |
} | |
rbenv_version() { | |
rbenv version 2>/dev/null | awk '{print $1}' | |
} | |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT='${ret_status} %{$fg[cyan]%}$(shrink_path -l -t)%{$reset_color%} $(git_prompt_info)' |
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 group(arr){ | |
let result = []; | |
let j=0; | |
let tmp = arr; | |
while(tmp.length > 0){ | |
let cmp = tmp[0]; | |
result[j] = []; | |
for(let i=0; i<tmp.length;i++){ | |
if(isAnagram(cmp, tmp[i])){ | |
result[j].push(tmp[i]); |
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
package com.company; | |
/** | |
* Created by tandat on 10/14/16. | |
*/ | |
public class ClockAngle { | |
public static void main(String[] args) { | |
System.out.println("Angle = " + countAngle(12, 15)); | |
} | |
public static double countAngle(int h, int m){ |
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 currentClick = 0; | |
var num = 1; | |
// list of all connected users | |
var users = []; | |
io.on('connection', function(socket){ | |
var newUser = { | |
name: 'user'+(num++), | |
numOfClicks: 0 | |
} | |
// add newUser |
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
package matrixTCP; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public class Matrix { | |
private int rows; | |
private int cols; | |
private double[][] data; |
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
package giaipt; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
import bai1_2.KyPhapBaLan; | |
public class BieuThuc { | |
private String bieuthuc = ""; |
NewerOlder