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
package jave_example; | |
import it.sauronsoftware.jave.AudioAttributes; | |
import it.sauronsoftware.jave.Encoder; | |
import it.sauronsoftware.jave.EncoderException; | |
import it.sauronsoftware.jave.EncodingAttributes; | |
import it.sauronsoftware.jave.InputFormatException; | |
import java.io.File; |
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
Windows Registry Editor Version 5.00 | |
; This will make it appear when you right click ON a folder | |
; The "Icon" line can be removed if you don't want the icon to appear | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime] | |
@="Open Folder as &Sublime Project" | |
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0" | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command] |
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
require File.join(File.dirname(__FILE__), 'deploy/nginx') | |
require File.join(File.dirname(__FILE__), 'deploy/log') | |
default_run_options[:pty] = true | |
set :ssh_options, { :forward_agent => true } | |
set :application, "appname" | |
set :repository, "git@giturl" | |
set :scm, :git |
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
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor" |
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
/* | |
* node.js with sqlite3 | |
*/ | |
var fs = require('fs'); | |
var file = 'C:/sqlite3' + '/' + 'test.db'; | |
var exists = fs.existsSync(file); | |
if(!exists){ | |
console.log('Creating DB file'); | |
fs.openSync(file,'w'); |
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
var mysql = require('mysql'); | |
var connection = mysql.createConnection({ | |
host : '192.168.117.128', | |
port : '3306', | |
user : 'root', | |
password : '1q2w3e', | |
database : 'members' | |
}); | |
connection.connect(); |
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
// MongoDB | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
// localhost에 test DB 접속 | |
mongoose.connect('mongodb://localhost/testdb'); | |
// 모델의 스키마 작성 | |
var CommentSchema = new Schema({ | |
desc : String |
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
// Change Tab | |
$(function(){ | |
var tabs = $(".tabular.menu a[data-tab]"); | |
var container = $("div[data-tab]"); | |
tabs.click(function(){ | |
var current = $(this); | |
tabs.removeClass('active'); | |
current.addClass('active'); | |
container.removeClass('active'); |
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
if ARGV[0] != nil | |
originFile = ARGV[0] | |
contentsArray = IO.readlines(originFile) | |
currentTime = Time.now.strftime("%Y-%m-%d-%H-%M-%S") | |
targetFile = "#{ARGV[0]}_#{currentTime}.txt" | |
resultFile = File.open(targetFile, "w") | |
contentsArray.each do |line| | |
if (line =~ /JAVA/) | |
resultFile.write(line) |
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
<!DOCTYPE html> | |
<html ng-app="myApp"> | |
<head> | |
<title>AngularJS</title> | |
</head> | |
<body> | |
<div> | |
<div ng-controller="MainCtrl"> | |
<p ng-model="helloworld">{{ helloworld }}</p> | |
</div> |