This file contains 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
// Example urls.js file for a Vue or React project | |
// ------------------------------------------------------------------------------------- | |
// URLs.js | |
// ------------------------------------------------------------------------------------- | |
/* | |
* Get the url query parameters from the current URL in the address bar | |
*/ | |
function get_url_params() { |
This file contains 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 tflearn | |
import numpy as np | |
import matplotlib.pyplot as plt | |
N = 1000 | |
# Approximate sine function using tflearn | |
x = np.linspace(-np.pi, np.pi, N) | |
y = np.sin(x) + np.random.uniform(-0.5,0.5, N) |
This file contains 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
<!-- Live Example: https://jsfiddle.net/Lqn6ocqm/ --> | |
<component> | |
<style> | |
.zelimir div { | |
background: #0ff; | |
} | |
</style> | |
<template> |
This file contains 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
// Vu.js v0.9000.1 Library | |
/* (Please don't use this, created as a joke) */ | |
/* Live Example: https://jsfiddle.net/ya76bu7b/3/ */ | |
class Vu { | |
constructor(config) { | |
this.$el = document.querySelector(config.el); |
This file contains 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
set nocompatible | |
"install pathogen | |
"git clone nerdtree, auto-pairs | |
call pathogen#infect() | |
syntax on | |
"set nu | |
set ts=2 |
This file contains 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
inoremap <expr> <Tab> SkipClosingParentheses() | |
function! SkipClosingParentheses() | |
let line = getline('.') | |
let current_char = line[col('.')-1] | |
"Ignore EOL | |
if col('.') == col('$') | |
return "\t" | |
end |