Skip to content

Instantly share code, notes, and snippets.

Carlin Canales selanac82

Block or report user

Report or block selanac82

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
selanac82 / SassMeister-input.scss
Last active Sep 8, 2016
My personal (simple) grid system based on Flexbox
View SassMeister-input.scss
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$gutter: 30px;
$columns: 12;
$max-width: 1000px;
* {
selanac82 / getPropertyPathInObject.js
Created May 20, 2014
This function will take any object/json and a property/key you want to search for. It will return the path as a string. I just created this code and will continue to update it. If you find any bugs please let me know. Right now it will return the last instance of the value you pass it. I am working on returning an array of all the paths. The las…
View getPropertyPathInObject.js
function getPath(object, value) {
var pathToUse = "",
path = [],
level = 0;
function traverse(o, prop) {
selanac82 / palindrome.js
Created Oct 4, 2013
Another challenge from another developer. This will verify if the string passed is a palindrome. Check out for more details on what a palindrome is. The best test for this is Demetri Martin's Palindrome poem (which is one of the console.logs). It will strip all non-word characters, numbers and underscores …
View palindrome.js
function isPalindrome(str){
var iteration, i = 0;
// if str is only one character long, no matter the character, return false
if(str.length < 2) return false;
// set all characters to lowercase and strip any invalid characters
str = str.toLowerCase().replace(/[\W\d_]/g, "");
selanac82 / aardvark.js
Last active Dec 24, 2015
This is a little challenge another developer hit me with. It will return the first letter after the first set of repeated letters in a string. For example, in aardvark it will return the 'r' after 'aa'. It will also return the letter in the correct case.
View aardvark.js
function aardvark(str){
var len = str.length, tempStr, iteration;
// if str is 2 characters or less return null right away
if(len < 3) return null;
// temporarily convert str to all lowercase to properly compare each character
tempStr = str.toLowerCase();
You can’t perform that action at this time.