Skip to content

Instantly share code, notes, and snippets.

View marti1125's full-sized avatar
๐Ÿ

Willy Aguirre marti1125

๐Ÿ
View GitHub Profile
@marti1125
marti1125 / sass
Created December 15, 2015 16:25
fancy buttons sass
.fancy
background-color: #fff
*zoom: 1
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFFFFFFF', endColorstr='#FFEFEFEF')
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(73%, #f7f7f7), color-stop(100%, #efefef))
background-image: -webkit-linear-gradient(top, #ffffff 0%, #f7f7f7 73%, #efefef 100%)
background-image: -moz-linear-gradient(top, #ffffff 0%, #f7f7f7 73%, #efefef 100%)
background-image: -o-linear-gradient(top, #ffffff 0%, #f7f7f7 73%, #efefef 100%)
background-image: linear-gradient(top, #ffffff 0%, #f7f7f7 73%, #efefef 100%)
border: 1px solid rgba(52, 73, 94, 0.2)
@marti1125
marti1125 / gist:37e405f61ca146125936
Created November 11, 2015 16:56
gulp-jade error log
C:\Users\Panzamon\Documents\credit-report-la.prototipo\jade\mixins\input-icon.jade, line 16:
You should not have jade tags with multiple attributes.
[11:55:27] { [TypeError: C:\Users\Panzamon\Documents\credit-report-la.prototipo\jade\procesos\asignacion_cupon_wizard\formulario_tabs\analisis.jade:5
3| .large-6.columns
4| | Inicio Anรกlisis
> 5| +icon-input-text-datepicker-2-10("fi-calendar","inicio-als-date","","")
6| .large-6.columns
7| | Fin Anรกlisis
8| .row.collapse
@marti1125
marti1125 / run-jasmine.js
Created October 6, 2015 21:01 — forked from barahilia/run-jasmine.js
Runs Jasmine tests using PhantomJS. Adapted for use within TeamCity..Compatible with Jasmine 2.0.
var system = require('system'),
env = system.env;
/**
* Wait until the test condition is true or a timeout occurs. Useful for waiting
* on a server response or for a ui change (fadeIn, etc.) to occur.
*
* @param testFx javascript condition that evaluates to a boolean,
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or
* as a callback function.
pub fn value(mut value :String) -> String {
let re = Regex::new(r"%20").unwrap();
let re2 = Regex::new(r"%21").unwrap();
let after = re.replace_all(&*value, "_");
let after2 = re2.replace_all(&*value, "!");
println!("1 {:?}", after);
println!("1 {:?}", after2);
value = after.replace("%21","") + &*after2.replace("%20","");
@marti1125
marti1125 / search-input-rust-api-doc
Last active September 28, 2015 23:16
empty search
$(".search-input").on("keyup",function(){
if($(this).val().length === 0){
window.history.pushState("", "std - Rust", "?search=");
$('#main.content').removeClass('hidden');
$('#search.content').addClass('hidden');
}
});
$('.search-input').on('search', function () {
if($(this).val().length === 0){
@marti1125
marti1125 / rust
Created September 24, 2015 00:25
rust
struct Point {
x: i32,
y: i32,
}
fn main() {
let mut point = Point { x: 0, y: 0 };
point.x = 5;
extern crate rustc_serialize;
#[macro_use] extern crate nickel;
use rustc_serialize::json;
use std::io::Write;
use std::collections::HashMap;
use nickel::status::StatusCode::NotFound;
use nickel::{Nickel, HttpRouter, JsonBody, StaticFilesHandler,
@marti1125
marti1125 / RegEX
Last active August 29, 2015 14:27
https://regex101.com
\/([^\/]*)\/+
\/([a-zA-Z0-9]{0,})\/+
(([a-zA-Z0-9]{0,})\/){0,}
(([a-z]{0,})\/){0,}
Bringing machine 'devcluster' up with 'virtualbox' provider...
==> devcluster: Checking if box 'ubuntu/trusty64' is up to date...
==> devcluster: Clearing any previously set forwarded ports...
==> devcluster: Clearing any previously set network interfaces...
==> devcluster: Preparing network interfaces based on configuration...
devcluster: Adapter 1: nat
devcluster: Adapter 2: hostonly
==> devcluster: Forwarding ports...
devcluster: 22 => 2222 (adapter 1)
==> devcluster: Running 'pre-boot' VM customizations...
@marti1125
marti1125 / gist:48afe2edd191a60754c1
Created July 12, 2015 06:08
buildbot shell_15 Install CLI failed
2015-07-12 01:41:14-0400 [-] step 'shell_15' complete: failure
2015-07-12 01:41:14-0400 [-] <Build cordova-firefoxos>: build finished
2015-07-12 01:41:14-0400 [-] releaseLocks(<BuildSlave 'cordova-firefoxos-slave'>): []
2015-07-12 02:01:57-0400 [Broker,2,61.160.213.56] Unhandled Error
Traceback (most recent call last):
File "/root/tmp/buildbot/sandbox/local/lib/python2.7/site-packages/Twisted-15.2.1-py2.7-linux-x86_64.egg/twisted/python/log.py", line 101, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/root/tmp/buildbot/sandbox/local/lib/python2.7/site-packages/Twisted-15.2.1-py2.7-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/root/tmp/buildbot/sandbox/local/lib/python2.7/site-packages/Twisted-15.2.1-py2.7-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext