Skip to content

Instantly share code, notes, and snippets.

View techsin's full-sized avatar
🏠
Working from home

techsin techsin

🏠
Working from home
  • New York, NY
View GitHub Profile
<!DOCTYPE html>
<html class="no-js" lang="en"><!-- <![endif]--><head><style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<base href="/">
<title>Working with us: The Small Group: The Big Organization</title>
<meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport">
<link href="http://local-resources.crowdtwist.com/v84/widgets/stylesheets/ct-widgets.css" rel="stylesheet">
<script>
@techsin
techsin / survey.css
Created May 19, 2016 15:40
Survey Widget
#survey > div.header.ct-header-color {
position: relative;
width: 500px;
margin: auto;
display: block;
background-color: #DE1F26!important;
overflow:autop;
border: none;
}
@techsin
techsin / activity.css
Last active May 18, 2016 20:27
activity widget
#activity-list > div.header.ct-header-color {
background-color: transparent!important;
border-bottom-color: #DE1F26;
padding:0;
}
#activity-list > div.header.ct-header-color h3 {
background-color: #DE1F26;
width: 200px;
padding: 0;
@techsin
techsin / reward.css
Last active May 18, 2016 20:27
reward-widget
#reward-list > div.container .rewards .reward {
display: inline-block;
margin:0;
width: calc(33% - 10px);
padding: 15px;
}
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,300);
* {
/*font-family: 'Oswald', sans-serif;*/
font-family: 'Open Sans', sans-serif;
color: white!important;
}
html {
overflow: hidden;
@techsin
techsin / gist:224136a4406a3b13bc16
Created January 23, 2016 15:45 — forked from jaydson/gist:1780598
How to detect a click event on a cross domain iframe
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){
@techsin
techsin / require-js-discussion.md
Created December 5, 2015 07:07 — forked from desandro/require-js-discussion.md
Can you help me understand the benefit of require.js?

I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.

From Require.js - Why AMD:

The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"

I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.


@techsin
techsin / string
Created August 28, 2015 14:32
weird string
enabled_engage_types=3&fexp=9408710,9409069,9415365,9415485,9416023,9416126,9417707,9418153,9418448,9418625&loeid=9418625&token=vjVQa1PpcFN554nlNgYMuruOnAL3SYvB4F2MDKxP8cg=&cos=Macintosh&sw=1.0&plid=AAUeX39qhypudzsN&pltype=content&of=KAbBkFJChwlxHcxKF1RLog&keywords=Gallium,aluminum,coke,can,alloy&mpvid=H_fm5L8--31Z8V9U&enablecsi=1&cbr=Chrome&cc3_module=1&ttsurl=http://www.youtube.com/api/timedtext?v=FaMWxLCGY0U&expire=1440795591&sparams=caps%2Cv%2Cexpire&signature=1043630DDD92B8DE125D22DA1EAD04E688B59875.2547FBA5374C91AEAEE4863125F4F2ED50BF0503&hl=en_US&caps=&key=yttt1&iurlsd=http://i.ytimg.com/vi/FaMWxLCGY0U/sddefault.jpg&user_gender=m&cl=101619811&iv3_module=1&has_cc=True&ldpj=-5&tmi=1&iurlsd_webp=http://i.ytimg.com/vi_webp/FaMWxLCGY0U/sddefault.webp&video_id=FaMWxLCGY0U&show_content_thumbnail=True&vm=CAE&ad_device=1&cc_fonts_url=http://s.ytimg.com/yts/swfbin/player-vflGhXt5C/fonts708.swf&gut_tag=/4061/ytunknown/main&ad_flags=0&allow_html5_ads=1&cc_module=http://s.ytimg.com/yts/swfbin/player-vflGhXt5C/subti
sentence = <<-something
Steven likes the movies. Blake likes to ride his bike but hates movies.
Blake is taller than than than steven. Steven Steven is a great teacher.
something
counter = Hash.new(0)
sentence.gsub!(".","").split(" ").each do |word|
counter[word] += 1
end
@techsin
techsin / cost
Last active August 29, 2015 14:26
sentence = <<-something
Steven likes the movies. Blake likes to ride his bike but hates movies.
Blake is taller than than than steven. Steven Steven is a great teacher.
something
counter = Hash.new(0)
sentence.gsub!(".","").split(" ").each do |word|
counter[word] += 1
end