Skip to content

Instantly share code, notes, and snippets.

@import "mixins";
@import "adjustment";
/* --------- sidebar --------- */
$sidebarPadding: 7%;
.wrapper {
@include flexbox;
}
.ui.form .field.error input[type="text"], .ui.form .field.error textarea
background-color: white
border-color: #ddd
padding-left: 40px
+box-shadow(0.3em 0em 0em 0em #aaa inset)
&:focus
color: gray
border-color: #ddd
+box-shadow(0.3em 0em 0em 0em #555 inset)
@100lp
100lp / on-off buttons
Created December 24, 2014 22:14
how to create custom on/off buttons
<div class="wrapper">
<input type="radio" name="switch" class="switch ternOn" id="ternOn" checked>
<label class="switch__label" for="ternOn">Вкл</label>
<input type="radio" name="switch" class="switch ternOff" id="ternOff">
<span class="switcher"></span>
<label class="switch__label" for="ternOff">Выкл</label>
</div>
<script class="cssdeck" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
@media only screen and (max-width: 980px)
#modal
#window
+scale(0.8)
@media only screen and (max-width: 680px)
#modal
#window
+scale(0.6)
@100lp
100lp / sass.sass
Last active December 16, 2015 18:00
#button_background a
height: 23px
padding: 5px 25px
z-index: 0
position: relative
display: block
border: 0
background: -webkit-linear-gradient(#fff, #f3efe7) !important
background: -moz-linear-gradient(#fff, #f3efe7) !important
background: -ms-linear-gradient(#fff, #f3efe7) !important
%html
%head
%title Bellecave
= stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application"
= csrf_meta_tags
%link{:href => "/stylesheets/screen.css", :media => "screen, projection", :rel => "stylesheet", :type => "text/css"}/
%link{:href => "/stylesheets/print.css", :media => "print", :rel => "stylesheet", :type => "text/css"}/
/[if IE]
<link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
require 'date'
programname = "Carbounkel"
VERSION = "0.0.1"
puts "#{programname} #{VERSION}"
puts "
1. task
2. datatask
3. new task
0. exit
<script type="text/javascript">
(function($) {
/*
* Function: fnGetColumnData
* Purpose: Return an array of table values from a particular column.
* Returns: array string: 1d data array
* Inputs: object:oSettings - dataTable settings object. This is always the last argument past to the function
* int:iColumn - the id of the column to extract the data from
* bool:bUnique - optional - if set to false duplicated values are not filtered out
* bool:bFiltered - optional - if set to false all the table data is used (not only the filtered)
@100lp
100lp / table.html
Last active December 14, 2015 11:49
<script type="text/javascript">
(function($) {
/*
* Function: fnGetColumnData
* Purpose: Return an array of table values from a particular column.
* Returns: array string: 1d data array
* Inputs: object:oSettings - dataTable settings object. This is always the last argument past to the function
* int:iColumn - the id of the column to extract the data from
* bool:bUnique - optional - if set to false duplicated values are not filtered out
* bool:bFiltered - optional - if set to false all the table data is used (not only the filtered)
@100lp
100lp / regexp.rb
Last active December 14, 2015 04:49
# On 2/20/13, at 01:30, Alexey Gaziev wrote: > посмотрите информацию по методу match у String <br /> [*On 2/20/13, at 01:30, Alexey Gaziev wrote:*] > и по методу =~ [19:14:26] Alexey Gaziev: посмотрите и сделайте мне следующую тему - [19:14:32] Alexey Gaziev: 1. В метод приходит строка [19:15:00] Alexey Gaziev: 2. Если строка содержит в начале ч…
def alex(string)
if string[/^\d/]
1
elsif string[/123#/]
2
else
if string.scan(/1/).size == 1
3
elsif string.scan(/1/).size > 1
4