Skip to content

Instantly share code, notes, and snippets.

<script src="random_groups2.js"></script>
import multiprocessing as mp
import subprocess
import sys
import time
import os
print("hello!", sys.argv)
@nonZero
nonZero / store.html
Created June 23, 2016 07:30
angular store 1
<!DOCTYPE html>
<html lang="en" ng-app="store">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<title>Our Store!!!</title>
</head>
<body>
<div class="container" ng-controller="StoreCtrl">
@nonZero
nonZero / app.js
Created June 21, 2016 09:46
angular controllers
"use strict";
console.log("app starts");
var mymod = angular.module("mymodule", []);
mymod.run(function udi($rootScope) {
console.log("mymod is loading!!!");
$rootScope.x = "ROOT!";
});
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>Super Angular!!!</title>
<style>
.ng-cloak {
display: none;
}
</style>
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>Super Angular!!!</title>
<style>
.ng-cloak {
display: none;
}
</style>
@nonZero
nonZero / .block
Last active June 19, 2016 10:19
:-)
license=unknown
@nonZero
nonZero / jqlife.css
Created June 14, 2016 14:30
jqlife 2 (buggy)
.r {
clear:left;
}
.cell {
transition: background 0.4s;
border: 1px solid #555;
width: 40px;
height: 40px;
float:left;
@nonZero
nonZero / jqlife.css
Created June 14, 2016 14:12
jqlife 1
.r {
clear:left;
}
.cell {
border: 1px solid #555;
width: 40px;
height: 40px;
float:left;
}
@nonZero
nonZero / index.html
Created June 7, 2016 15:55
$(".parent").on("click", "child", ....)
<!DOCTYPE html>
<html>
<head>
<title>JS DEMO</title>
</head>
<body>
<input type="text" class="ttt"/>