Skip to content

Instantly share code, notes, and snippets.

Sineer sineer

Block or report user

Report or block sineer

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
View gist:8b30aba4c9d71a38ed732e3451b14fa0
* Arcadia.NRepl+EvalFn Specter1/Assets/Arcadia/Editor/NRepl.cs (185:0)user=> (require 'com.rpl.specter)
nil
user=> (require 'com.rpl.specter.core-test)
System.InvalidCastException: Specified cast is not valid.
* clojure.lang.ATransientMap.conj
* clojure.lang.ATransientMap.clojure.lang.ITransientCollection.conj
* clojure/core/conj!
* clojure/core/protocols/fn
* clojure/core/protocols/fnG
* clojure/core/protocols/seq-reduce
View keybase.md

Keybase proof

I hereby claim:

  • I am sineer on github.
  • I am sineer (https://keybase.io/sineer) on keybase.
  • I have a public key ASDJvJ7f3f3CtsMxSSAKGb9R43oN3Yv-PeAG3pbSgz2rTQo

To claim this, I am signing this object:

View posix_regex.c
#include <regex.h>
int main() {
regex_t regex;
int ret;
chat msg[128];
ret = regcomp(&regex, "^P[^:alnum:]", 0);
if (!ret) {
View getstatus.go
package main
import (
"fmt"
"io/ioutil"
"net/http"
"strings"
)
const (
View test_valid.yml
- hello: true
- world: true
View test.yml
- test: true
- foo: false
View monhack.py
#!/usr/bin/env python
import pickle, os, sys, logging, json, socket
from httplib import HTTPConnection, socket
from smtplib import SMTP
def email_alert(subject, message):
fromaddr = 'monitor@gmail.com'
toaddrs = ['monitor@gmail.com']
View getstatus.js
// 1st thing I should've done is write down the question
// Q: Do REST call, process response body and print O.K if all params are true else print Error: some_param and exit.
// Response format: multi-lines ascii: "- attr_name_string : bool"
// 2nd, beside choosing just about any other language than node.js because it is very hard to do this in node...
// find a proper example of node.js http.get client code such as:
// http://stackoverflow.com/questions/6968448/where-is-body-in-a-nodejs-http-get-response
// and remember that res.on('data', function(chunk) { ... })
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
You can’t perform that action at this time.