This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current window
# A utility written in Ruby to download video from M3U8 files. | |
# | |
# From Wikipedia: | |
# | |
# An M3U file is a plain text file that specifies the locations of one or more | |
# media files. The file is saved with the "m3u" filename extension if the text | |
# is encoded in the local system's default non-Unicode encoding (e.g., a | |
# Windows codepage), or with the "m3u8" extension if the text is UTF-8 encoded. | |
require 'optparse' |
import React, { Component, PropTypes } from 'react' | |
import { withRouter } from 'react-router' | |
import queryString from 'query-string' | |
@withRouter | |
export default class SearchBox extends Component { | |
static propTypes = { | |
router: PropTypes.object.isRequired | |
} |
require "test_helper" | |
require "awesome_print" | |
require "hashdiff" | |
class MyClass | |
def self.do_stuff | |
{a:[{y:3}, {x:11, z:33}], b:{y:22}} | |
end | |
end |
! Trying to F*** with my keyboard. | |
! | |
! The theory is that if I make the caps lock be the "Mode_switch" key, | |
! then I can change what happens for each key when I press the "Mode_switch" key. | |
! | |
! I'm not using the "Mode_switch" key anyway... | |
! | |
! This will make the caps lock be the "Mode_switch" key. | |
clear Lock |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current window<!-- app/views/layouts/application.html.erb --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- ... --> | |
<% if Rails.application.config.disable_animations %> | |
<%= stylesheet_link_tag('disable_animations') %> | |
<!-- Turn off animations in jQuery --> | |
<script>$.fx.off = true;</script> |
var HashTable = function() { | |
this._storage = []; | |
this._count = 0; | |
this._limit = 8; | |
} | |
HashTable.prototype.insert = function(key, value) { | |
//create an index for our storage location by passing it through our hashing function | |
var index = this.hashFunc(key, this._limit); |
/*Box sizing (the nuclear option) */ | |
*, *:before, *:after { | |
-ms-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing:border-box; | |
box-sizing: border-box; | |
} | |
/* Fix font rendering defaults */ | |
html, button { |