Skip to content

Instantly share code, notes, and snippets.

View wolflee's full-sized avatar
🎯
Focusing

WolfLee wolflee

🎯
Focusing
View GitHub Profile
@wolflee
wolflee / rubocop.yml
Last active October 17, 2019 14:12
even.more.relaxed.ruby.style
Style/FrozenStringLiteralComment:
Enabled: false
Style/NumericLiterals:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Bundler/OrderedGems:
@wolflee
wolflee / playground.rs
Created April 11, 2019 06:43 — forked from rust-play/playground.rs
Code shared from the Rust Playground
#![allow(unused_variables)]
#![allow(dead_code)]
use std::fmt::{Display, Formatter, Result};
struct ImportantExcerpt<'a> {
part: &'a str,
}
impl<'b> std::fmt::Display for ImportantExcerpt<'b> {
@wolflee
wolflee / spacemacs-cheatsheet.md
Last active May 10, 2019 00:34 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@wolflee
wolflee / Emacs_starter.pl
Created April 19, 2016 15:02 — forked from railwaycat/Emacs_starter.pl
Start Emacs.app from CLI
#!/usr/bin/perl
# Emacs starter for Emacs mac port
# Thanks to Aquamacs Project and David Reitter
my $args = "";
my $tmpfiles = "";
for my $f (@ARGV) {
gulp = require('gulp')
browserSync = require('browser-sync')
gulp.task 'browser-sync', ['webpack:dev-server'], ->
browserSync(
proxy: "localhost:8081"
port: 8080
)
@wolflee
wolflee / Rakefile
Created July 21, 2014 09:54
Arithmometer
task :test do
$:.unshift('lib', 'spec')
Dir.glob('./spec/**/*_spec.rb') { |f| require f }
Dir.glob('./lib/**/*.rb') { |f| require f }
end
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
class App
constructor: (@body) ->
# site global setup
start: ->
controllerName = @body.data('js_controller')
Controller = App[controllerName]
if Controller
@main = new Controller
@wolflee
wolflee / writeroom.uri.html
Last active May 10, 2019 00:33
make your own writeroom with chrome, remember ⌘+⇧+F to enter fullscreen mode
data:text/html, <body contenteditable style="font-size:2rem;color:hsl(0,0%,75%);background:hsl(0,0%,19%);line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
@wolflee
wolflee / Gemfile
Created October 30, 2012 09:18 — forked from HungYuHei/Gemfile
followable with redis Sorted-Set
# Gemfile
gem 'redis', '~> 3.0.1'