Skip to content

Instantly share code, notes, and snippets.

View fatihacet's full-sized avatar
🤙

Fatih Acet fatihacet

🤙
View GitHub Profile
var
setCookie = function (c_name, value, exdays) {
var exdate = new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString() + "; path=/");
document.cookie = c_name + "=" + c_value;
};
setCookie("BsiLanguage", "pl_PL", 90, "/");
@hced
hced / stickyfooter.html
Created September 5, 2012 12:57
Sticky Footer (credits to Ryan Faith)
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* {
margin: 0;
}
html, body {
@fatihacet
fatihacet / sticky-footer.html
Created September 5, 2012 13:21
sticky footer
@nurrony
nurrony / package-list.md
Last active November 11, 2016 12:18
My Sublime Text Settings and Plugins List
@0i0
0i0 / tomorrow-night.css
Created July 12, 2012 01:27
Code mirror tomorrow night theme
.CodeMirror-scroll {
height: 100%;
min-height:300px;
}
.cm-s-tomorrow-night{
font-family:'Menlo', 'Consolas', "Vera Mono", monospace;
font-size:12px;
}
.cm-s-tomorrow-night { background: none; color: hsl(140,2%,77%); }

Iterators

What is the difference between forEach and map in JS?

forEach:

const arr = [1, 2, 3];

const eachExample = () => arr.forEach(e => e);
@fatihacet
fatihacet / sublime.conf.json
Last active May 6, 2019 07:33
sublime.conf
{
"close_windows_when_empty": false,
"color_scheme": "Packages/One Dark Color Scheme/One Dark.tmTheme",
"detect_indentation": false,
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": true,
"env":
{
"PATH": "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/share/npm/bin/"
},
@koriroys
koriroys / coffee-asset-pipeline-comments.js
Last active January 17, 2020 11:20
convert all coffeescript files to javascript
var fs = require('fs'),
os = require('os'),
lineReader = require('line-reader');
function help(){
console.log('Usage: node coffee-asset-pipeline-comments.js file1.coffee');
}
function compilefile(pathname, outdir){
var src = '';
@v0lkan
v0lkan / engineer.md
Last active June 7, 2021 07:18
The Evolution of a Software Engineer

This gist outlines the change in the depth and breadth of the tasks and responsibilities of a software engineer as she continuously improves herself.

I created this to supplement a discussion in an internal slack group; then I though the rest of the world might benefit from this too.

Contributions are always welcome.

Junior Engineer

  • Knowledge