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
class MyEditor { | |
onPaste = (_event, paste, state) => { | |
if (paste.type === "text" && isUrl(paste.text) && state.isCollapsed) { | |
return ( | |
state | |
.transform() | |
.insertText(paste.text) | |
.extend(0 - paste.text.length) | |
.wrapInline({ | |
type: "link", |
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
defmodule Dd.Web.ConnCase do | |
use ExUnit.CaseTemplate | |
using do | |
quote do | |
use Phoenix.ConnTest | |
import Dd.Web.Router.Helpers | |
import Dd.Web.TestHelpers # Helpers added directly to ConnCase | |
@endpoint Dd.Web.Endpoint |
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
{ | |
"scripts": { | |
"start": "./node_modules/.bin/webpack-dev-server --content-base static" | |
}, | |
"dependencies": { | |
"autoprefixer-loader": "^3.2.0", | |
"css-loader": "^0.24.0", | |
"extract-text-webpack-plugin": "^1.0.1", | |
"modularscale-sass": "^2.1.1", | |
"node-sass": "^3.8.0", |
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
{ | |
"parser": "babel-eslint", | |
/*"plugins": ["react"],*/ | |
"ecmaFeatures": { | |
/*"jsx": true,*/ | |
"modules": true | |
}, | |
"env": { | |
"browser": true, | |
"node": true, |
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 main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"reflect" | |
"time" | |
"github.com/gorilla/context" |
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 main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"reflect" | |
"time" | |
"github.com/gorilla/context" |
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 main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"reflect" | |
"time" | |
"github.com/gorilla/context" |
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 main | |
import ( | |
"database/sql" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"log" | |
"net/http" | |
"time" |
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
# DESCRIPTION: | |
# A simple zsh configuration that gives you 90% of the useful features that I use everyday. | |
# | |
# AUTHOR: | |
# Geoffrey Grosenbach http://peepcode.com | |
############ | |
# FUNCTIONS | |
############ |
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
gem "mongoid", ">= 2.0.0.beta9" | |
gem "bson_ext", ">= 1.0.3" | |
gem "haml", ">= 3.0.12" | |
gem "rspec-rails", ">= 2.0.0.beta.15", :group => :test | |
generators = <<-GENERATORS | |
config.generators do |g| | |
g.orm :mongoid | |
g.template_engine :haml | |
g.test_framework :rspec, :fixture => true, :views => false |
NewerOlder