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 A = [['n','sqrt(n)']]; | |
| for(var j=1; j<10; ++j){ | |
| A.push([j, Math.sqrt(j)]); | |
| } | |
| var csvRows = []; | |
| for(var i=0, l=A.length; i<l; ++i){ | |
| csvRows.push(A[i].join(',')); |
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\[\033[36m\]\u\[\033[m\]\[\033[33;1m\]\w\[\033[m\]\[\033[32m\]\$(parse_git_branch)\[\033[00m\]$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxBxDxCxegedabagacad | |
| alias ls='ls -GFh' |
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
| // Variables. | |
| $small-range: (0em, 40em); /* 0, 640px */ | |
| $medium-range: (40.063em, 64em); /* 641px, 1024px */ | |
| $large-range: (64.063em, 90em); /* 1025px, 1440px */ | |
| $xlarge-range: (90.063em, 120em); /* 1441px, 1920px */ | |
| $xxlarge-range: (120.063em); /* 1921px */ | |
| @function lower-bound($range) { | |
| @if length($range) <= 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
| console.log( | |
| String.fromCharCode(175,92,95,40,12484,41,95,47,175) | |
| ); |
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
| git branch | grep -v "master" | xargs git branch -D |
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
| // Breakpoints | |
| $break360: 22.500em; | |
| $break479: 29.938em; | |
| $break480: 30em; | |
| $break600: 37.500em; | |
| $break640: 40em; | |
| $break641: 40.063em; | |
| $break767: 47.938em; | |
| $break768: 48em; | |
| $break769: 48.063em; |
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
| Vagrant.configure("2") do |config| | |
| config.vm.define "webserver" do |webserver| | |
| webserver.vm.box = "hashicorp/precise64" | |
| webserver.vm.network "private_network", ip: "192.168.0.2" | |
| webserver.vm.hostname = "webserver" | |
| end |
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
| /** | |
| * t(). | |
| * Converts a template into text by replacing placeholders based on an object properties. | |
| * | |
| * @param String template. | |
| * @param Object params. | |
| * | |
| * @return String. | |
| */ | |
| const t = (template, params) => { |
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
| <header> | |
| <h1>Demo</h1> | |
| </header> | |
| <section class="content"> | |
| <p>Hello There!</p> | |
| <a href="#">Click me!</a> | |
| </section> | |
| <footer> | |
| <p>This is a footer</p> | |
| </footer> |
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 getGetOrdinal(n) { | |
| var s=["th","st","nd","rd"], | |
| v=n%100; | |
| return n+(s[(v-20)%10]||s[v]||s[0]); | |
| } |