Skip to content

Instantly share code, notes, and snippets.

🙌

Fatih Acet fatihacet

🙌
Block or report user

Report or block fatihacet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fatihacet
fatihacet / app.js
Last active Feb 1, 2017
Generic Vue validation
View app.js
new Vue({
el: '#app',
methods: {
validate() {
VueValidator(this, () => {
console.log('single input is valid');
});
}
}
})
@fatihacet
fatihacet / input.scss
Last active Aug 8, 2016
Use Scss map and map_get to get dynamic variables from map.
View input.scss
$white_foo_bar: #FFF;
$map: (
foo: 'foo',
bar: 'bar',
baz: 'white',
foowhite: 'foowhitecolor'
);
@mixin foo($type) {
View setChromeOptions.js
//import the selenium web driver
var webdriver = require('selenium-webdriver');
var chromeCapabilities = webdriver.Capabilities.chrome();
//setting chrome options to start the browser fully maximized
var chromeOptions = {
'args': ['--test-type', '--start-maximized']
};
chromeCapabilities.set('chromeOptions', chromeOptions);
var driver = new webdriver.Builder().withCapabilities(chromeCapabilities).build();
@fatihacet
fatihacet / package.json
Created Jun 1, 2015
Easily switch between your two predefined themes for Sublime Text.
View package.json
{
"name": "themeswitch",
"version": "0.0.1",
"description": "Easily switch between your two predefined themes for Sublime Text.",
"dependencies": {},
"devDependencies": {
"coffee-script": "^1.9.3",
"json-format": "0.0.1"
},
"author": "Fatih Acet <fatih@fatihacet.com>"
View sublime.conf.json
{
"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/"
},
View alert.js
window.IDE.appControllers.helloworld = function() {
time = new Date().toString().match(/(\d\d:\d\d:\d\d)/)[0];
view = new KDCustomHTMLView({
tagName: 'h2',
partial: 'HELLO WORLD APP LOADED at ' + time + ' !!!'
});
return view;
}
@fatihacet
fatihacet / karma.conf.js
Created Dec 20, 2014
Sample karma.conf.js
View karma.conf.js
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'build/js/**/*.js',
'build/tests/**/test_*.js'
],
exclude: [
],
View test_box.coffee
describe 'Box', ->
beforeEach ->
box = new Box
top : 200
right : 400
bottom : 400
left : 100
@fatihacet
fatihacet / Box.coffee
Last active Aug 29, 2015
Sample Box class for FE-CI blog post.
View Box.coffee
class Box
###*
Class for representing a box. A box is specified as a top, right, bottom
and left.
@constructor
@param {Object} options Options object to hold top, right, bottom
and left values.
###
@fatihacet
fatihacet / Gruntfile.coffee
Last active Aug 29, 2015
Sample Gruntfile
View Gruntfile.coffee
module.exports = (grunt) ->
grunt.initConfig
coffee :
options :
bare : yes
src :
files : [
expand : yes
You can’t perform that action at this time.