`gcc -E -x c source.js | sed '/^#/d' > result.js``
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.example.android.sunshine.app; | |
| import android.animation.Animator; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.ValueAnimator; | |
| import android.graphics.Canvas; | |
| import android.graphics.ColorFilter; | |
| import android.graphics.Paint; | |
| import android.graphics.PixelFormat; | |
| import android.graphics.Rect; |
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 ng-app="unsupportDeviceSearchApp"> | |
| <head> | |
| <title>๊ธฐ๊ธฐ ๋ฏธ์ง์ ๋ฆฌ์คํธ</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> | |
| </head> | |
| <body ng-controller="unsupportDeviceSearchController"> | |
| <form> | |
| <input type="text" ng-model="query" ng-change="search()"> | |
| </form> |
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
| private static final Interpolator INTERPOLATOR = new LinearInterpolator(); | |
| private static int DURATION = 300; | |
| private Property<View, Float> translateProperty = new Property<View, Float>(Float.class, "translateX") { | |
| @Override | |
| public Float get(View view) { | |
| return view.getTranslationX(); | |
| } |
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
| http://www.codewars.com/kata/5402724fd39b43c075000116/train/javascript | |
| ```javascript | |
| function fill(n, x) { | |
| var a = []; | |
| for(var i=0;i<n;i++) { | |
| if (typeof x === 'function') a[i] = x(); | |
| else if(x instanceof Array) a[i] = x.slice(0); | |
| else a[i] = x; | |
| } |
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
| extern crate rand; // Cargo.toml ์ ์ ์ํ ๋ํฌ๋์๋ฅผ ๊ฐ์ ธ์ค๊ธฐ ์ํด extern crate ํค์๋๋ก ๊ฐ์ ธ์ค๊ธฐ | |
| use std::io; // ์ํฌํธ | |
| use std::cmp::Ordering; | |
| use rand::Rng; | |
| fn main() { | |
| println!("Guess the number"); // ๊ธฐ๋ณธ์ ์ผ๋ก ํจ์ ํธ์ถ์ ๊ทธ๋ฅ ๋ ธ๋งํ๊ฒ ํธ์ถ, ๋๋ํ๋ ๋งคํฌ๋ก๋ฅผ ํธ์ถ | |
| let secret_number = rand::thread_rng().gen_range(1, 101); // ์์์ ๋ฐ์ธ๋ฉ. |
(์์)[https://www.youtube.com/watch?v=W23s6kYJbrA]
ํฌ๋กฌ ์ฝ์์์๋ง ํด๋ณด๋๋ผ(๊ท์ฐฎ์์) tdd๋ฅผ ๋ชปํ๋น....
ํ์ค์ผ ์ข ๊ณต๋ถํด์ ํด๋ณด์. recursive, map, filter ๊ฐ ์ฃผ ๋ก์ง์ด๋ ์ฝ๊ฒ(๋ ์๋๊ณ ) ๊ฐ๋ฅํ ๊ฑฐ ๊ฐ๋ค
0 4 8
1 3 5 7 9
function undoRedo(object) {
function History(type, key, oldValue, newValue) {
this.type = type;
this.key = key;
this.oldValue = oldValue;
this.newValue = newValue;http://www.codewars.com/kata/529bf0e9bdf7657179000008/train/javascript;
์ฒ์์๋ ํฉ์ด 45๊ฐ ๋์ค๋๊น ํฉ์ ๋ชจ๋ ๊ณ์ฐํด์ ํด๋ณผ๊น...
ํ๋ค๊ฐ ๊ทธ๋ดํ์ ์์ด ๊ฐ ๋ก์ฐ/์ปฌ๋ผ/3x3๋ฐ์ค์ 1~9๊ฐ ๋ชจ๋ ๋ค์ด์์ผ๋ฉด ๋๊ฒ ๋ค ํด์ ์ด๋ ๊ฒ ํ๋๋ฐ;;
๊ทธ๋ฅ ์ซ์๊ฐ ๋ชจ๋ ์๋ค๋ฅผ ์ฒดํฌํ๋๊ฒ ๋์๊ฑฐ ๊ฐ์์ ๊ทธ๋ฅ ํด๋ด;;
var hasAll = (arr) => arr.reduce((a,b)=>a+b)==45OlderNewer