Skip to content

Instantly share code, notes, and snippets.

Another personality defect is ego assertion and I'll speak in this case of my own experience. I came from Los Alamos and in the early days I was using a machine in New York at 590 Madison Avenue where we merely rented time. I was still dressing in western clothes, big slash pockets, a bolo and all those things. I vaguely noticed that I was not getting as good service as other people. So I set out to measure. You came in and you waited for your turn; I felt I was not getting a fair deal. I said to myself, ``Why? No Vice President at IBM said, `Give Hamming a bad time'. It is the secretaries at the bottom who are doing this. When a slot appears, they'll rush to find someone to slip in, but they go out and find somebody else. Now, why? I haven't mistreated them.'' Answer, I wasn't dressing the way they felt somebody in that situation should. It came down to just that - I wasn't dressing properly. I had to make the decision - was I going to assert my ego and dress the way I wanted to and have it steadily drain my
<div id="my-store-1003"></div><div> <script type="text/javascript" data-cfasync="false" src="https://app.ecwid.com/script.js?1003" charset="utf-8"></script><script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(20,3) list(60) table(60)","categoryView=grid","searchView=list","id=my-store-1003");</script></div>
data:text/html, <div id="my-store-1003"></div> <div> <script type="text/javascript" src="https://app.ecwid.com/script.js?1003&data_platform=code&data_date=2016-08-12" charset="utf-8"></script><script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","id=my-store-1003");</script> </div>
@qetzal
qetzal / gist:e9706f6c2eabb21f0b70
Last active April 7, 2016 11:47
Gmail → Omnifocus bookmarklet
javascript:(function(){var enc=encodeURIComponent,w=window,frames=w.frames,d=document,tn=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),pu=w.location.href,isGMail=w.location.host.match(/mail\.google\.com/),tt=pt=d.title,subjSpans=d.getElementsByClassName("hP"),i,url;if(isGMail){if(subjSpans){tt=subjSpans[0].innerText}else{tt=d.title.substring(d.title.indexOf("-")+1,d.title.lastIndexOf("-")).replace(/^ +/,"").replace(/ +$/,"")};if(tn!="")tn+="\n\n";tn+="From email subject:("+tt+")\n"+pu;pu="https://mail.google.com/mail/u/0/?qs=true&search=query&q=subject:("+enc(tt)+")"};url='omnifocus:///add?note='+enc(tn+"\n"+pu)+'&name='+enc(tt);w.location.href=url})();
javascript:(function(){var enc=encodeURIComponent,w=window,frames=w.frames,d=document,tn=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),pu=w.location.href,isGMail=w.location.host.match(/mail\.google\.com/),tt=pt=d.title,subjSpans=d.getElementsByClassName("hP"),i,url;if(isGMail){if(subjSpans){tt=subjSpans[0].innerText}else{tt=d.title.substring(d.title.indexOf("-")+1,d.title.lastIndexOf("-")).replace(/^ +/,"").replace(/ +$/,"")};if(tn!="")tn+="\n\n";tn+="From email subject:("+tt+")\n"+pu;pu="https://mail.google.com/mail/u/0/?qs=true&search=query&q=subject:("+enc(tt)+")"};url='omnifocus:///add?note='+enc(tn+"\n"+pu)+'&name='+enc(tt);w.location.href=url})();
Тело = "[{""sku"": ""S0000060326"", ""name"": ""Товар1""} , {""sku"": ""S0000053458"", ""name"": ""Товар2""} ]";
ssl = Новый ЗащищенноеСоединениеOpenSSL();
Сервер = "app.ecwid.com";
Ресурс = "api/v1/XXXXXXX/products?secure_auth_key=XXXXXXX";
HTTP = Новый HTTPСоединение(Сервер,,,,,,ssl);
HTTPЗапрос = Новый HTTPЗапрос(Ресурс);

Решил раз в неделю постить вам ссылки на статьи и сайты, которые по каким-то причинам меня заинтересовали.

Growth Hacking Cook Book: https://hackpad.com/Growth-Hacking-Cook-Book-5RQex1Uv8Zf

Holacracy: http://holacracy.org/

Statistics Done Wrong: http://www.refsmmat.com/statistics/

Top Hacks from a PM Behind Two of Tech's Hottest Products: http://firstround.com/article/Top-Hacks-from-a-PM-Behind-Two-of-Techs-Hottest-Products

@qetzal
qetzal / gist:6497219
Created September 9, 2013 15:29
Add borders to images
.ecwid-productBrowser-subcategories-mainTable td div img,
.ecwid-productBrowser-productsGrid-productTopFragment td div img {
background-color: #FAFAFA !important;
border: 1px solid #F3F3F3 !important;
box-shadow: 1px 1px 3px rgba(202, 202, 202, 0.9) !important;
}
Всем привет. Давайте поговорим о Твиттере и хэштэге #ulsk. Я считаю, что этот хэштэг реально крутая штука - его активно читают и активно юзают.
Но к сожалению часть людей не понимают смысл хэштэгов, а часть компании и людей просто омерзительно спамит ради копеечки трафика. Поэтому читать #ulsk твиты весьма утомительно и раздражет.
Вот - есть решение.
1) Открываем https://gist.github.com/qetzal/6299086
2) Копируем строчку - вставляем в поиск твиттера
3) Выбираем "All" в результатах поиска, добавляем ссылку в букмарки.
4) Готово! Лента #ulsk без спама и дегенератов.