A Pen by Robert Machmer on CodePen.
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
--================================================================================== | |
-- Copyright (C) 2017 by Robert Machmer = | |
-- = | |
-- Permission is hereby granted, free of charge, to any person obtaining a copy = | |
-- of this software and associated documentation files (the "Software"), to deal = | |
-- in the Software without restriction, including without limitation the rights = | |
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell = | |
-- copies of the Software, and to permit persons to whom the Software is = | |
-- furnished to do so, subject to the following conditions: = | |
-- = |
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
# Only returns the total lines of code. | |
# Remove the tail call to show a more verbose output. | |
wc -l $(find . -name '*.lua') | tail -1 | |
# Add more files as parameters. | |
wc -l $(find . -name '*.lua' -or -name '*.sh' ) | tail -1 | |
# This would return the lines of code of all .lua files in your repository. | |
# Simply exchange .lua with the extension you want to search for. | |
wc -l $(git ls-files | grep -e '.*\.lua' ) |
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 "ui-variables"; | |
@import "syntax-variables"; | |
// Make zen tabs more zen-like | |
[data-zen="true"] { | |
atom-pane-container atom-pane .item-views { | |
background: @syntax-background-color !important; | |
} | |
atom-text-editor:not(.mini) { | |
margin: 0 auto; |
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
find . -name *.DS_Store -type f -delete |
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
local function serialize( value, output, depth ) | |
local ws = ' '; | |
for _ = 1, depth do | |
ws = ws .. ' '; | |
end | |
if type( value ) == 'table' then | |
for k, v in pairs(value) do | |
if type( v ) == 'table' then | |
table.insert( output, string.format( '%s[\'%s\'] = {', ws, tostring( k ))); | |
serialize( v, output, depth + 1 ); |