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 gulp = require('gulp'), | |
merge = require('merge-stream'), | |
runSequence = require('run-sequence'), | |
plumber = require('gulp-plumber'), | |
clean = require('gulp-clean'), | |
sass = require('gulp-sass'), | |
watch = require('gulp-watch'), | |
livereload = require('gulp-livereload'), | |
embedLiveReload = require('gulp-embedlr'), | |
minifyCss = require('gulp-minify-css'), |
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 "stdafx.hpp" | |
using namespace NFR; | |
// | |
// CCallbackIdCreator | |
// | |
CCallbackIdCreator::CCallbackIdCreator() | |
{ |
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 addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} |
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
// ==UserScript== | |
// @name Trello | |
// @namespace http://namekdev.net | |
// @version 0.2 | |
// @description different Trello background every day | |
// @author Namek | |
// @include /^https?://trello\.com/?.*$/ | |
// @grant none | |
// ==/UserScript== |
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
@Component({ | |
selector: 'test-component' | |
}) | |
@View({ | |
directives: [ContenteditableModel] | |
template: ` | |
<h1 contenteditable="true" [(contenteditableModel)]="someObj.someProperty"></h1> | |
{{someObj | json}} | |
` | |
}) |
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 * as hookMod from 'angular2/src/router/lifecycle_annotations'; | |
import * as routerMod from 'angular2/src/router/router'; | |
import {isBlank, isPresent, Json} from 'angular2/src/facade/lang'; | |
import {StringMapWrapper} from 'angular2/src/facade/collection'; | |
import {Promise, PromiseWrapper} from 'angular2/src/facade/async'; | |
import {BaseException} from 'angular2/src/facade/exceptions'; | |
import { | |
ElementRef, DynamicComponentLoader, Directive, Injector, provide, ComponentRef, Attribute | |
} from 'angular2/core'; | |
import { |
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
JavaFX TextArea: | |
JavaFX WebView: | |
+ easily selectable for copying | |
- hard to display image downloaded by script | |
- not efficient | |
- required to wait for engine load asynchronously | |
JavaFX TextFlow: |
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
/** | |
* © 2015 isp-insoft all rights reserved. | |
*/ | |
package com.isp.lpt; | |
import java.util.concurrent.CountDownLatch; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.BlockJUnit4ClassRunner; | |
import org.junit.runners.model.InitializationError; |
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
FROM elixir:1.5 | |
EXPOSE 8080 | |
ENV PORT=8080 MIX_ENV=prod | |
ENV LANG=C.UTF-8 | |
RUN apt-get update && mix local.hex --force && mix local.rebar --force | |
# Install node.js and Elm | |
RUN curl -sL https://deb.nodesource.com/setup_8.x \ |
OlderNewer