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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CLRviaCsharp_00 | |
{ | |
class Program | |
{ |
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 java.io.*; | |
public class HelloWorld { | |
static class Foo { | |
public int x; | |
public Foo(int in) | |
{ | |
x = in; | |
} | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
public class Foo | |
{ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Boostrap Number</title> | |
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<style> | |
.input-group{ text-align: center; padding: 5px; } | |
</style> | |
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> |
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
Date.prototype.getWeekOfMonth = function(){ | |
var dayOfWeek = this.getDay() + 1; | |
var day = this.getDate(); | |
return Math.ceil((day - dayOfWeek) / 7) + ((dayOfWeek >= 0) ? 1 : 0); | |
}; | |
Date.prototype.getDayCountOfMonth = function(){ | |
var month = this.getMonth() + 1; | |
var isLeapYear = (function(date){ | |
var year = date.getFullYear(); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace NewFeatures | |
{ | |
//1. Using Static Members | |
using static System.Math; |
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
require 'fileutils' | |
def cpSameFile(sourceDir, targetDir, sameWithDir) | |
Dir.foreach(sameWithDir) do |file| | |
puts file | |
filePath = sourceDir + "/" + file | |
targetPath = targetDir + "/" + file | |
if file == "." or file == ".." or File.directory?(file) | |
else | |
if File.exist?(filePath) | |
FileUtils.cp filePath, targetPath |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>TRY</title> | |
<style> | |
div{ | |
width: 100px; | |
height: 40px; | |
} |
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
def outputImage(directory, target) | |
File.open(target, 'w') do |t| | |
Dir.foreach(directory) do |file| | |
puts file | |
if File.extname(file) == ".png" | |
t.puts "\#\##{file}" | |
t.puts "\!\[#{file}\]\(.\\img\\#{file}\)" | |
t.puts | |
end | |
end |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test page</title> | |
<script> | |
window.onload = function(){ | |
var slowTask = function(callback){ | |
setTimeout(function(){ | |
callback(); |