Source for this comparison of C and ClojureScript perf.
C source:
#include <stdio.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
int main() {
SELECT f.repo_name, s.num_stars | |
FROM [copper-diorama-131213:github.go_repos_files] AS f | |
JOIN [copper-diorama-131213:github.2015_2016_stars] AS s | |
ON f.repo_name = s.repo_name | |
WHERE f.path LIKE 'Godeps/_workspace/%' | |
GROUP BY f.repo_name, s.num_stars | |
ORDER BY s.num_stars DESC | |
SELECT f.repo_name, s.num_stars | |
FROM [copper-diorama-131213:github.go_repos_files] AS f |
Source for this comparison of C and ClojureScript perf.
C source:
#include <stdio.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
int main() {
import simplejson | |
import json | |
def put(data, filename): | |
try: | |
jsondata = simplejson.dumps(data, indent=4, skipkeys=True, sort_keys=True) | |
fd = open(filename, 'w') | |
fd.write(jsondata) | |
fd.close() | |
except: |
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import MyComponent from '../src/my-component'; | |
const wrapper = shallow(<MyComponent/>); | |
describe('(Component) MyComponent', () => { | |
it('renders without exploding', () => { | |
expect(wrapper).to.have.length(1); | |
}); |
I recently ran into a situation where binwalk -M -e $FIRMWARE
failed me. This was for a Netgear firmware image that ended in a .chk
extension.
The firmware file name was R7960P-V1.0.1.34_1.0.20.chk
.
This is the output when I ran binwalk R7960P-V1.0.1.34_1.0.20.chk
:
$ binwalk R7960P-V1.0.1.34_1.0.20.chk
-- Active issues | |
-- Count of total active issues in the specified time frame | |
-- Source: githubarchive public data set via Google BigQuery http://githubarchive.org/ | |
SELECT | |
COUNT(DISTINCT JSON_EXTRACT_SCALAR(events.payload, '$.issue.id')) AS events_issue_count | |
FROM (SELECT * FROM TABLE_DATE_RANGE([githubarchive:day.],TIMESTAMP('2015-09-01'),TIMESTAMP('2016-08-31'))) | |
AS events | |
-- 10,723,492 active issues |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents