Skip to content

Instantly share code, notes, and snippets.

Gitting it done (from 🏡)

Vinayak Kulkarni vinayakkulkarni

Gitting it done (from 🏡)
View GitHub Profile
vinayakkulkarni / countries.html
Created Sep 27, 2016
Countries dropdown snippet in Semantic-UI format ( ISO-3366-1: Alpha-2 Codes )
View countries.html
<!-- Make sure you have Semantic-UI libs include
Also, Ensure you import jQuery for smooth transition
Once you have all the imports add this to your html:
<script type="text/javascript">
$(document).ready(function() {
vinayakkulkarni / thehtml.html
Last active Dec 23, 2016
Greet according to the time. Set default as afternoon.
View thehtml.html
<h1 class="gradient-text">
<span>Good afternoon.</span><br>
How can we help you today?
vinayakkulkarni / withinexampleTest.php
Created Dec 27, 2016
Using within() to limit DOM search for link click()
View withinexampleTest.php
->within('th a', function() { $this->click('Register'); })
->seeRouteIs('history.index', ['sort' => '5', 'sorttype' => 'asc']);
View validation.js
The following methods are implemented in this file
1. function Blanks_Validation(sValue)
2. function IsPure_Numeric(sValue)
3. function IsNumeric(sValue)
4. function IsValid_US_Phone_Or_Fax(sValue)
5. function IsAlpha_Numeric(sValue)
6. function IsValid_Email(sValue)
View gist:ac9ef370f118dcdcd44140433d24f215
vinayakkulkarni / rating.vue
Last active Jul 29, 2017
Vue + Semantic-UI Rating
View rating.vue
Vue.component('rating', {
template: `<div class="ui star rating" :data-rating="value"></div>`,
props: ['value'],
watch: {
value: function (val, oldVal) {
if (val == null) {
$(this.$el).rating('clear rating');
View component.vue
<div class="ui container stackable grid">
<div class="sixteen wide column" v-if="this.loading">
<div class="ui segment" style="height:200px;">
<div class="ui inverted dimmer" :class="{active: loading}">
<div class="ui text large loader">Loading</div>
<div class="eight wide column" v-if="!this.loading">
View launch_visual_studio_code_from_terminal.markdown

Launch Visual Studio Code from the macOS Terminal

Visual Studio Code ships with a CLI called code. This utility is hidden in the following folder (assuming you installed Visual Studio Code in /Applications like normal folk. If this following line opens Visual Studio Code for you, then bingo, you're ready.

open /Applications/Visual\ Studio\

You can find more (official) details about code here

View sublime-preferences.json
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"font_face": "Operator Mono",
"font_size": 15,
View pref.json
"always_show_minimap_viewport": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Colorsublime - Themes/santojon-dark.tmTheme",
"font_face": "Operator Mono",